Closed mjkhaled closed 4 years ago
Code Below:
$url = "https://api.sandbox.mangopay.com/v2.01/mjk_khaled/users"; $client_id = "-----------"; $API_key = "---------------------"; $auth = base64_encode("$client_id:$API_key"); $page = "/v2.01/mjk_khaled/users"; $curl_headers = array( "Content-Type: application/x-www-form-urlencoded",//application/json "Authorization: Basic ". $auth );
`$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,1500); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, $curl_headers);
$response = curl_exec($ch); curl_close($ch);`
As I previously answered in another issue you've opened, your clientID is unknown on our side. If you encountered issues on Sandbox registration, please try to ask our support or try to register again :)
Mickaël
Hello,
My issue is that I was trying to call the API below: https://api.sandbox.mangopay.com/v2.01/clientId/users Knowing that I've passed the authorization & clientId correctly, but I still received the result below with every API I called.
[Message] => This endpoint is not available for your account [Type] => forbidden_ressource [Id] => 34e3121f-d603-4886-ac1a-857a3dca00e3#1570900712 [Date] => 1570900714 [errors] =>
Can anyone help please ?
Thanks in advance.