我正在使用OAuth库连接到我的Etsy商店(etsy.com)并尝试检索有关已售出订单的一些信息.
原文链接:https://www.f2er.com/php/136352.html这是图书馆:https://github.com/Lusitanian/PHPoAuthLib/blob/master/examples/etsy.php
但是,在“允许访问”后,我一直收到错误消息.我收到一个令牌,但当我允许访问时,问题就出现了.
这是完整的错误:
Fatal error: Uncaught exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'file_get_contents(http://openapi.etsy.com/v2/private/users/__SELF__): Failed to open stream: HTTP request Failed! HTTP/1.1 400 Bad Request ' in /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/Common/Http/Client/StreamClient.PHP:70 Stack trace: #0 /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/OAuth1/Service/AbstractService.PHP(137): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri),NULL,Array,'GET') #1 /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/examples/etsy.PHP(47): OAuth\OAuth1\Service\AbstractService->request('/private/users/...') #2 {main} thrown in /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/Common/Http/Client/StreamClient.PHP on line 70
有人会有任何意见来确定问题是什么吗?