Untitled
unknown
php
a year ago
600 B
2
Indexable
Never
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.roaring.io/token"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "scope=PRODUCTION&grant_type=client_credentials&client_secret=*secret*&client_id=*id*"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = [ 'Cache-Control' => 'no-cache', 'Content-Type' => 'application/x-www-form-urlencoded', 'authorization' => 'Basic Base64(consumer-key:*secret*)' ]; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $server_output = curl_exec($ch);