question

demskigroup avatar image
demskigroup asked chanel Deactivated answered

href in url's

I believe most of our url's are correct but I wanted to confirm. We are using the full set url in most use cases so we just have a string with the url for example: $url = ' https://www.clover.com/oauth/token'; and then we use curl to grab the json, this method is not affected by the href change?
$curlPost = 'client_id=' . $client_id . '&client_secret=' . $client_secret . '&code=' . $code;
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost);

$data = json_decode(curl_exec($ch), true);

$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($http_code != 200)
throw 
new Exception('Error : Failed to receive access token');return $data;
API Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

chanel avatar image
chanel Deactivated answered
That is correct, the href removal only affects a single field on return. It looks like your issue is due to the data you're passing in for the call.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community