Skip to content

corewebdesign/civicrm_gem

 
 

Repository files navigation

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

 
 
 

Contributors

Languages

  • Ruby 100.0%