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) »
  • Synhcronising with Mailman broken under new API
Pages: [1]

Author Topic: Synhcronising with Mailman broken under new API  (Read 426 times)

Anthony F. Camilleri

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 4.3
Synhcronising with Mailman broken under new API
November 25, 2013, 11:33:22 pm
Dear all,

I have several sites which synchronise CIVICRM groups with mailman using the technique shown in the wiki here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Mailman+synchronization

This is however not correct anymore since
Code: [Select]
$result = civicrm_contact_search( $params ); is no longer supported in the new api.

I'm afraid I'm not familiar enough with it to edit the paramter myself - could anyone help?

Sincerely,

Anthony

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Synhcronising with Mailman broken under new API
November 26, 2013, 12:35:28 am
Try

Code: [Select]
$result = civicrm_api3('contact', 'get', $params);

Note the result you want may actually be in $result['values']
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) »
  • Synhcronising with Mailman broken under new API

This forum was archived on 2017-11-26.