0
yahoo Japan APIを使用する際に問題があります。ここでyahoo Japan APIオーダー情報にアクセスするとerror = "insufficient_scope"
<?xml version="1.0" encoding="utf-8" ?>
<Error>
<Message>
Please provide valid credentials. Bearer realm="yahooapis.jp", error="insufficient_scope", error_description="insufficient scope"
</Message>
</Error>
私の要求です:
https://circus.shopping.yahooapis.jp/ShoppingWebService/V1/orderInfo
Authorization: Bearer accessToken
<Req>
<Target>
<OrderId>orderId here</OrderId>
<Field>PayStatus,SettleStatus</Field>
</Target>
<SellerId>sellerId here</SellerId>
</Req>
だから、多分あなたは私のaccessTokenが期限切れまたは無効にされると思いますが、注文情報のAPIを使用している場合 は、サーバーは常にエラーを返します。しかし、私はこのaccessTokenを使用してユーザー情報APIにアクセスすると、それは働くので、accessTokenは問題ではありません。
https://userinfo.yahooapis.jp/yconnect/v1/attribute?schema=openid
Authorization: Bearer accessToken
私の要求に間違いはありませんか?ありがとう。
更新: 同じ問題を抱えている人には、私の解決策です。 yahooに問い合わせて、ショッピングAPIの使用権限を許可するように依頼する必要があります。それは:))