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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • What is the Syntax to pull membership info using the REST API
Pages: [1]

Author Topic: What is the Syntax to pull membership info using the REST API  (Read 1010 times)

phyxavier

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 2
  • CMS version: 7
  • MySQL version: 5
  • PHP version: 5.24
What is the Syntax to pull membership info using the REST API
January 22, 2012, 02:00:24 pm
Hi all, I need help in finding the right syntax to pull in membership info for a contact..using the rest API. I have tried the following: response = https://<mysite>/sites/all/modules/civicrm/extern/rest.php?q=civicrm/contact/memberships/get&contactID=200&key=<key>&api_key=<api_key>&json=1'
 and keep getting Unknown function invocation error. any help will be appreciated..Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: What is the Syntax to pull membership info using the REST API
January 22, 2012, 02:53:09 pm
Are you really on civiccrm version 2?

Anyway, try q=civicrm/membership ... but you really should update (really)

X+

-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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • What is the Syntax to pull membership info using the REST API

This forum was archived on 2017-11-26.