I'm testing the ZC api to add a record. It's working, but the response is always "Resource id #1"
Here's the php code (with items chenged to hide actuals). How can I echo the actual json response?
- <?php
- {
- $PETS="Cat, Dog, Bird";
- $url = 'https://creator.zoho.com/api/buzzap/json/xxxyyy/form/zzzz/record/add/';
- $fields .= '&authtoken=yaddayaddayadda123456';
- $fields .= '&scope=creatorapi';
- $fields .= '&PETS='.$PETS;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, TRUE);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_exec($ch);
- curl_close($ch);
- echo $ch;
- }
- ?>
Cheers,
John Whitney