Closed artemmelnik closed 7 years ago
Looks like it's an issue with the SDK. I believe the issue is here where it's using the wrong http method to send the request. It's a typo as it should be POST not MET. I'll get a fix done as soon as possible.
The 13.0.1 release should stop the status code 405 been returned from the API.
Hi, I'm trying to make a request through SDK. PostOrderService `/**
@throws EbayPostOrderApiException */ public function decideApprove($returnId) { if (false === $returnId) { throw new EbayPostOrderApiException('Invalid property type provided for returnId.'); }
}`
Returns
object(DTS\eBaySDK\PostOrder\Types\ProcessReturnRequestRestResponse)[408] private 'values' (DTS\eBaySDK\Types\BaseType) => array (size=0) empty private 'attachment' (DTS\eBaySDK\Types\BaseType) => array (size=2) 'data' => null 'mimeType' => null private 'statusCode' => int 405 private 'headers' => array (size=2) 'Content-Type' => array (size=1) 0 => string 'text/plain' (length=10) 'Content-Length' => array (size=1) 0 => string '0' (length=1) private 'headerNames' => array (size=2) 'content-type' => string 'Content-Type' (length=12) 'content-length' => string 'Content-Length' (length=14)
Help me please.