curl_setopt($ch, CURLOPT_URL, $base); curl_setopt($ch, CURLOPT_HTTPHEADER, array('accept'=>'application/json')); curl_setopt($ch, CURLOPT_HTTPHEADER, array('authorization'=>'Bearer {'.$access_token.'}')); curl_setopt($ch, CURLOPT_HTTPHEADER, array('cache-control'=>'no-cache')); curl_setopt($ch, CURLOPT_HTTPHEADER, array('content-type'=> 'application/json')); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
... View more