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) »
  • REST relationship_types_get / relationship_type_get broken in 3.2.3
Pages: [1]

Author Topic: REST relationship_types_get / relationship_type_get broken in 3.2.3  (Read 663 times)

jubesz

  • Guest
REST relationship_types_get / relationship_type_get broken in 3.2.3
September 22, 2010, 07:17:16 pm
In version 3.1, I was able to fetch all relationship types after authenticating using a URL like this one:
http://www.server.org/administrator/components/com_civicrm/civicrm/extern/rest.php?q=civicrm/relationship/types_get&json=1&PHPSESSID=*redacted*&api_key=redacted*key=*redacted*&rowCount=1000

After upgrade to 3.2, this results in the following JSON error object:

{"error_message":"Unknown function called: civicrm_relationship_types_get","is_error":1}

I have posted an issue about this.  CF: http://issues.civicrm.org/jira/browse/CRM-6860

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: REST relationship_types_get / relationship_type_get broken in 3.2.3
September 23, 2010, 09:48:26 am
Hello jubesz,

Could you please integrate this patch : https://fisheye2.atlassian.com/browse/CiviCRM/branches/v3.2/api/v2/RelationshipType.php?r1=29797&r2=29800
and please change url 'q' part to 'q=civicrm/relationshipType/get'

so url would be like http://www.server.org/administrator/components/com_civicrm/civicrm/extern/rest.php?q=civicrm/relationshipType/get&json=1&PHPSESSID=*redacted*&api_key=redacted*key=*redacted*&rowCount=1000

Let us know if it works for your installation.

Thanks,
Kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • REST relationship_types_get / relationship_type_get broken in 3.2.3

This forum was archived on 2017-11-26.