Skip to content

PowerToChange/civicrm_gem

Repository files navigation

CiviCrm Gem

⚠️ This gem is no longer maintained, you are welcome to fork and continue development!

Installation

$ gem install civicrm

Getting started

CiviCrm.site_key = 'YOUR_SITE_KEY'
 # More info about site_key:
 # http://wiki.civicrm.org/confluence/display/CRMDOC43/Managing+Scheduled+Jobs
CiviCrm.api_base = 'https://www.example.org/path/to/civi/codebase/'
CiviCrm.authenticate('demo', 'demo')

CiviCrm Objects

CiviCrm::Contact.all    # get list of contacts
CiviCrm::Contact.create(contact_type: 'Organization', organization_name: 'test') # create contact
CiviCrm::Contact.find(1).delete      # find and delete

Testing

rspec spec

Useful links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages