Thanks for the reply Ergin.
Here is what i tried.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://account-d.docusign.com/oauth/token&response_type=code&scope=signature&client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&state=a39fh23hnf23&redirect_uri=https://www.google.com/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_HTTPHEADER => array(
"cache-control: no-cache",
"postman-token: a51a80ff-b741-3d19-4fd5-1099f034e1ae"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
print_r($response);
}
I am not sure about what headers to use in here, but I've tried using the code from Postman and it still doesn't work. Thanks