GithubHelp home page GithubHelp logo

Comments (4)

crystallove avatar crystallove commented on July 27, 2024

why there is no answer :(
Maybe ETSY is not popular.
I tried with another method like
$tracking_url = 'https://openapi.etsy.com/v2/private/shops/'.$shopid.'/receipts/'.$receiptid.'/tracking'; $data = $client->oauth->fetch($tracking_url,$paramsent,OAUTH_HTTP_METHOD_POST,array('Content-Type' => 'application/x-www-form-urlencoded')); $json = $client->oauth->getLastResponse();

Above way also return the error:

object(OAuthException)#107 (9) { ["message":protected]=> string(73) "Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect)" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(403) ["file":protected]=> string(57) "xxx/public_html/etsy/tracking.php" ["line":protected]=> int(75) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(57) "xxx/public_html/etsy/tracking.php" ["line"]=> int(75) ["function"]=> string(5) "fetch" ["class"]=> string(5) "OAuth" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(79) "https://openapi.etsy.com/v2/private/shops/xxxx/receipts/xxxxxxx/tracking" [1]=> array(1) { ["params"]=> array(3) { [0]=> string(0) "" [1]=> string(22) "9400110898849000577676" [2]=> string(4) "usps" } } [2]=> string(4) "POST" [3]=> array(1) { ["Content-Type"]=> string(33) "application/x-www-form-urlencoded" } } } } ["previous":"Exception":private]=> NULL ["lastResponse"]=> string(407) "oauth_problem=signature_invalid&debug_sbs=POST&https%3A%2F%2Fopenapi.etsy.com%2Fv2%2Fprivate%2Fshops%2Fxxxx%2Freceipts%2Fxxx0%2Ftracking&oauth_consumer_key%3xxxd%26oauth_nonce%3Dxxxfa52.11725177%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1501056298%26oauth_token%3D1xxx9e1ce25%26oauth_version%3D1.0%26params%3Dusps" ["debugInfo"]=> NULL }

from etsy-php.

sandism avatar sandism commented on July 27, 2024

Any Update?

from etsy-php.

sandism avatar sandism commented on July 27, 2024

@crystallove Did you manage to solve that or have another workaround?

from etsy-php.

duyquang1410 avatar duyquang1410 commented on July 27, 2024

I am also having a problem creating a product on esty, "Invalid auth / bad request (got a 400, expected HTTP / 1.1 20X or a redirect)"
I think because I run the implementation in localhost with http so I can't post the data up

from etsy-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.