Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 843 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 843 Bytes

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