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) »
  • Applying a group to a contact (API example broken)
Pages: [1]

Author Topic: Applying a group to a contact (API example broken)  (Read 735 times)

tog22

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: Drupal 7
  • MySQL version: Varies
  • PHP version: Varies
Applying a group to a contact (API example broken)
March 21, 2012, 11:04:51 am
How can I apply a group to a contact with v3 of the API? The example at /api/v3/examples/GroupContact.php is broken - it returns:

Array
(
    [is_error] => 1
    [error_message] => API (group_contact,) does not exist (join the API team and implement it!)
)

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: Applying a group to a contact (API example broken)
March 21, 2012, 01:17:06 pm
you might want to check: http://svn.civicrm.org/civicrm/branches/v4.1/api/v3/examples/GroupContactCreate.php

Kurund
Found this reply helpful? Support CiviCRM

tog22

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: CiviCRM 4
  • CMS version: Drupal 7
  • MySQL version: Varies
  • PHP version: Varies
Re: Applying a group to a contact (API example broken)
March 22, 2012, 01:33:42 am
Thanks a lot Kurund, I'd tried that before but got an error which I stupidly misinterpreted as meaning this was the wrong API call when it was something else! It works fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Applying a group to a contact (API example broken)

This forum was archived on 2017-11-26.