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) »
  • CiviCRM and Chained API Commands via Rest.
Pages: [1]

Author Topic: CiviCRM and Chained API Commands via Rest.  (Read 902 times)

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
CiviCRM and Chained API Commands via Rest.
November 16, 2012, 03:08:39 am
Can civicrm 4.1.6 handle chained API commands via rest?

If I encode chained commands (or even a single command) into a json, then put ../rest.php&key=mysitekey&api_key=myapikey&json={ stuff etc }

When I test the result by posting from a Rest developer console, it comes back with a standard webpage rather than any data?

I really don't want to upgrade to 4.2.x because I'm on Drupal 6 and 4.2.x isn't properly supported on Drupal 6.

Cheers.

*** EDIT ***

I guess not looking at the REST.php and comparing to the 4.2 patch.

Is there any plans to?
« Last Edit: November 19, 2012, 05:09:38 pm by SweetTooth »

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: CiviCRM and Chained API Commands via Rest.
February 07, 2013, 08:26:17 pm

Sorry to bump this, but I would love to know if there are any plans to patch CiviCRM 4.1 so that it can have chained rest commands? Has anyone managed to get chained rest commands working with 4.1?

Is there no chance of Drupal 6 being supported in 4.2? Surely there is a huge amount of people out there that simply can't just upgrade to 7 and need to keep motoring along under 6.

Many thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM and Chained API Commands via Rest.
February 07, 2013, 08:47:00 pm

pretty sure 4.1 will not have another release. Most likely the next release is the last 4.2 release also

note that 4.2 does work with D6 and is used by a fair number of people.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: CiviCRM and Chained API Commands via Rest.
February 07, 2013, 08:53:55 pm

I'll go for the 4.2.x if it's stable with no nasty surprises.

It's just that when I seen that it wasn't supported, I was having nightmares about something slowly going wrong, with no help when it hits the fan!

We're having a lot of fun with the REST API and to be able to chain via REST will open up all sorts of exciting possibilities!

Many thanks for the good work.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCRM and Chained API Commands via Rest.
February 08, 2013, 12:53:11 am
Hi,

You could probably backport the chaining feature, but as lobo said, upgrading to 4.2 is better.

Quote from: SweetTooth on February 07, 2013, 08:53:55 pm

We're having a lot of fun with the REST API and to be able to chain via REST will open up all sorts of exciting possibilities!


What are you planning to do with it? always interesting to hear how it's used

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviCRM and Chained API Commands via Rest.
February 14, 2013, 02:51:55 pm
We use d6 with 4.2 - probably as much as we use d7. There are no problems with core functionality & no regression on integration modules (although there are improvements made to d7 & not d6) as far as we are concerned
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • CiviCRM and Chained API Commands via Rest.

This forum was archived on 2017-11-26.