davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

statusCode 405 - processReturnRequest #129

Closed artemmelnik closed 7 years ago

artemmelnik commented 7 years ago

Hi, I'm trying to make a request through SDK. PostOrderService `/**

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.

davidtsadler commented 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.

davidtsadler commented 7 years ago

The 13.0.1 release should stop the status code 405 been returned from the API.