|
A javascript method is provided to call the API on the server. This is JSON based and the syntax is: For instance if you want to add a tag to a contact: This is a thin wrapper around a call to http://example.org/civicrm/ajax/rest For instance the call to search all the organisations tagged with the tag id 40 that contain "test" in their name is (and return their names and countries): http://example.org/civicrm/ajax/rest/civicrm/ajax/rest?fnName=civicrm/contact/search&json=1&contact_type=Organization&rowCount=25&return\[country\]&tag=40&sort_name=test See another example on how to use it to add or remove tags: or creating an autocomplete field |
AJAX Interface
Labels
