LoginSignup
0
0

More than 5 years have passed since last update.

Yahoo!ショッピングWeb APIの注文検索APIで401 Authorization Required

Last updated at Posted at 2015-11-02

Yahoo!ショッピングWeb APIの注文検索APIへリクエストを行ったところ、
「401 Authorization Required」
が返ってきます。
なぜでしょうか?
アクセスキーはImplicitフローにて取得しております。
アプリケーションIDは「Yahoo!ショッピング ストア運営をサポートするAPIの利用」から取得しております。

ヘッダーにはAuthorizationエンドポイントから取得したアクセスキーを指定しております。

リクエスト:

POST /ShoppingWebService/V1/orderList HTTP/1.1
Host: circus.shopping.yahooapis.jp
Content-Encoding: UTF-8
Content-Type: application/xml
Content-Length: 505
Authorization: Bearer <アクセスキー>
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding: identity
User-Agent: Yahoo AppID: <アプリケーションID>

レスポンス:

HTTP/1.1 401 Authorization Required
Date: Mon, 02 Nov 2015 00:43:01 GMT
Content-Type: application/xml
Age: 30
Transfer-Encoding: chunked
Connection: keep-alive

200
<?xml version="1.0" encoding="utf-8" ?>


Service Requires Authentication

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0