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) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Backporting v3 API to civicrm 3.2.3?
Pages: [1]

Author Topic: Backporting v3 API to civicrm 3.2.3?  (Read 992 times)

anthony.oliver.switchback

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 1
  • CMS version: 1
  • MySQL version: 1
  • PHP version: 1
Backporting v3 API to civicrm 3.2.3?
April 05, 2011, 02:42:25 pm
Is this even possible?  There are some newer functions I would like to use, and I know you'll ask why don't I just upgrade to 3.4 but there is a lot of custom code that has to upgraded as well but need this feature now.

How much work would this be, is it worth spending the time? Or should I just spend the time adding the custom stuff that I need?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Backporting v3 API to civicrm 3.2.3?
April 05, 2011, 03:21:29 pm
Most of the v3 api's already exists in v2. So if you are not able to upgrade, you should consider using v2 api or if anything is missing use BAO methods.

Kurund
Found this reply helpful? Support CiviCRM

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Backporting v3 API to civicrm 3.2.3?
April 05, 2011, 07:08:55 pm
I have backported apiv3 onto every site I work on. I recommend you spend 10 minutes backporting API V3 per this thread rather than using apiv2. Apart from the fact your code will last longer it will also be quicker to write

http://forum.civicrm.org/index.php/topic,19205.0.html

I haven't backported it onto anything earlier than v3.3 but I would expect it to work on 3.2 sites with rare exceptions

Documentation is here
http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+Public+APIs

(NB backporting is also a good option so that you can upgrade your custom code to use it prior to upgrading)
« Last Edit: April 05, 2011, 07:12:33 pm by Eileen »
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Backporting v3 API to civicrm 3.2.3?
April 05, 2011, 11:14:34 pm
I'd recommend backporting the apiv3!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Backporting v3 API to civicrm 3.2.3?

This forum was archived on 2017-11-26.