Version 9 (modified by 11 years ago) ( diff ) | ,
---|
CiviCRM Rest API
Relevant Links for version 4.2
- Devlopers Guide API Reference
- API Reference
- Rest Interface
- Setting up a Site Key - necessary for Rest API.
- Test Server API Explorer
- Parameter list for Test Server - What parameters are available for each entity in the API.
Steps to Enable the Rest API
- Create a site key
- Create a user
- Enable the user to access the REST api
Create a Site Key
- Go to The Bit Mill
- Select Uppercase, Lowercase, Numbers, Punctuation
- Set Removals from selection as
&=+$?%,/:{}#|'
- Set length to be
32
- Edit the CiviCRM Settings file.
- For the test server this is: uhlbriccsapp04:/var/local/civicrm/drupal/sites/default/civicrm.settings.php
Using the REST API
- Login using the URL: http://{CIVIPATH}/civicrm/extern/rest.php?q=civicrm/login&name={USERNAME}&pass={PASSWORD}&key={SITE_KEY}&json=1
- Extract the
SESSION_ID
from the response. - Make a request supplying the
SITE_KEY
andSESSION_ID
Note:
See TracWiki
for help on using the wiki.