When I\'m posting json data to API using curl - I\'m not getting any output. I would like to send email invitation to recipient.
json
curl
$
You have to add header:
$headers= array('Accept: application/json','Content-Type: application/json');
And:
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
Otherwise ...
HTTP Status 415 - Unsupported Media Type
... may happen.