I'm new to CiviCRM and REST API Calls. I'm attempting to create a new contact using POST via Postman. I'm submitting the following:
http://www.mysite.com/wp-content/plugins/civicrm/civicrm/extern/rest.php?entity=Contact&action=create&api_key=(myAPIkey)&key=(mySiteKey)&json:{“contact_type":"Individual","first_name":"Tester","last_name":"Yolanda"}
But I get the response back:
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in
<b>/wp-content/plugins/civicrm/civicrm/CRM/Utils/REST.php</b> on line
<b>167</b>
<br />
<?xml version="1.0"?>
<ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
</ResultSet>
I glanced at line 167 - it seems to be about constructing the response. I know I'm getting some kind of connection - If I change a character in the site or API key, I get "failed to authenticate" - so that part seems to be working.
CiviCRM version 4.7.27, Wordpress version 4.9.1
Thanks for any pointers!