Closed Yann-iBroStudio closed 3 years ago
Running the sample code below is given an error 400 Bad Request thru MangoPay\Libraries\ResponseException $e
require_once '/path/to/your-project/vendor/autoload.php'; $api = new MangoPay\MangoPayApi(); // configuration $api->Config->ClientId = 'my-production-client-id'; $api->Config->ClientPassword = 'my-production-client-password'; $api->Config->TemporaryFolder = '/my/tmp/path/'; $api->Config->BaseUrl = 'https://api.mangopay.com'; try { $users = $api->Users->GetAll(); } catch(MangoPay\Libraries\ResponseException $e) { // ==> 400 BAD REQUEST } catch(MangoPay\Libraries\Exception $e) { // handle/log the exception $e->GetMessage() }
Hi @jahazzz There seems to be something off with the call, could you send me the exact code with your variables (not your API key) to email deleted thanks
please reopen ticket for further info
Running the sample code below is given an error 400 Bad Request thru MangoPay\Libraries\ResponseException $e