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_contact_get: New format for return
Pages: [1]

Author Topic: civicrm_contact_get: New format for return  (Read 595 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
civicrm_contact_get: New format for return
January 17, 2011, 10:14:34 am
Hi,

Instead of
http://api.crm/civicrm/ajax/rest?fnName=civicrm/contact/get&json=1&debug=1&return_sort_name=1,return_display_name=1,return_first_name =1

you can
http://api.crm/civicrm/ajax/rest?fnName=civicrm/contact/get&json=1&debug=1&return=sort_name,display_name,first_name

Nicer, and more coherent with {crmAPI}...


the return_xxx=1 param still works, as does return[xxx]=1
-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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • civicrm_contact_get: New format for return

This forum was archived on 2017-11-26.