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) »
  • supporting UFGroup api calls via REST
Pages: [1]

Author Topic: supporting UFGroup api calls via REST  (Read 1536 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
supporting UFGroup api calls via REST
August 31, 2009, 07:15:09 pm
Currently, the REST interface does not support the UFGroup or UFJoin API's because the calling function names do not get properly parsed due to the contraction of UFGroup to uf for example in civicrm_uf_profile_html_get. In addition, the version 2 API interfaces do not follow the proposed model of passing a $params array.

The attached patch to civicrm/api/v2/UFGroup.php provides a wrapper function to allow the call from civicrm/CRM/Utils/REST.php to invoke the existing v2 API. I have not tried to standardize the function name according to the proposal for 3.1, but would be happy to if I knew what it should be. For example, should uf be changed to ufgroup, and should profile_html somehow have its _ removed, eg profileHtml or profileHTML?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • supporting UFGroup api calls via REST

This forum was archived on 2017-11-26.