Open mtmibjas opened 4 years ago
I believe you might be getting 401. You would need to check the http status code instead of body.
any idea how can I get sandbox API keys to test the APIs?
Hello, I am getting status code 200 and an empty body. Thanks to @mtmibjas for your little solution.
The following code help me to fix the issue....
$quotationResult = $request->quotation($quotationBody);
$quotationResult->getBody()->rewind();
$getQuotation = strval($quotationResult->getBody()->getContents());
getQuotationMessage = json_decode($getQuotation);