CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Important changes on the REST interface (api v3)
Pages: [1]

Author Topic: Important changes on the REST interface (api v3)  (Read 604 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Important changes on the REST interface (api v3)
January 16, 2011, 02:06:19 am
Hi,

We are introducing a new and improved API (v3) in civicrm 3.4 and we strongly suggest you to start using it.

We are keeping for the next version of civicrm (at least) the api V2. Most of the calls are compatible, that's mostly a matter of making things more logical.

You don't have to do anything by default to use the latest API, and if you are using the REST interface, we are suggesting you to test first if it works directly out of the box with the new version.

If it isn't the case, you can probably modify it easily, don't hesitate to post on this forum to ask for help and clarifications

If you want to keep the api v2, you can request it for a specific API by adding a "version" param (2 or 3)

If you want to keep the api v2 for all the requests, you can set in your civicrm.settings.php the version that is called by default:
define( 'CIVICRM_API_VERSION', '3' ); // if this isn't defined, it will be defaulting to 3, but you can set it to 2

We will maintain the v2 api for the next civicrm version at least, but urge you to evaluate the new api and start working on upgrading it.

if you are using the api v2, we are returning an extra param "deprecated", as a kind reminder that really, you should upgrade the software using this API ;)

X+



« Last Edit: January 16, 2011, 02:17:03 am by xavier »
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Important changes on the REST interface (api v3)

This forum was archived on 2017-11-26.