UnderArmour Connected Fitness api で access_tokenエンドポイントに投稿しようとすると、403 "Developer Inactive" エラーが発生します。使用されているclient_idはアクティブです。呼び出しで使用される URL は次のとおりです: https://api.ua.com/v7.1/oauth2/access_token/
これは、認証コードを取得した後の Python を使用した呼び出しのスニペットです。
import requests
access_token_url = 'https://api.ua.com/v7.1/oauth2/access_token/'
access_token_data = {'grant_type': 'authorization_code',
'client_id': CLIENT_ID,
'client_secret': CLIENT_SECRET,
'code': authorize_code}
response = requests.post(url=access_token_url, data=access_token_data)
In [24]: response
Out[24]: <Response [403]>
In [25]: response.content
Out[25]: '<h1>Developer Inactive</h1>'
ここで、CLIENT_ID と CLIENT_SECRET は、開発者ポータルで登録した値です。