Having a horrible time trying to get api.Contact.get into the URL. The api explorer always puts into a &json{} array. api.Contact.get is an empty array and that defeats most other ways of getting it into the REST call. No example provided by Civicrm uses an empty array in code demonstration. The simplexml example accepts and passes on the json, but I don't get anything back. I've also tried a CURL call that I wrote and I tried mimicing the cURL call used by the civicrm_api3 class (which also does not work with the json array).

I'd like to know if anyone can tell me how to get a functional equivalent of


I have a case where going after the linked contacts would be miserably slow and inefficient.

Is there working php code ANYWHERE that can use the json array in the examples? If so, can you tell me where to find it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.