I have created developer account in screenleap and trying to integrate screenleap API into my application, but when I am trying sample request code generated by screenleap it is giving me NULL.
How to test sample request in php?
$url = 'https://api.screenleap.com/v2/screen-shares';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('authtoken:my_authtoken'));
curl_setopt($ch, CURLOPT_POSTFIELDS, 'accountid=my_accountid');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data,true);
var_dump($json);