「アクセストークンの取得」の部分で行き詰まりました。ドキュメントでは、「コード」が必要です。しかし、どうすれば認証コードを取得できますか? 私はパイソンを使用しています。
authorize_url = 'https://www.box.com/api/oauth2/authorize?response_type=code&client_id=MY_CLIENT_ID'
def myRequest(path, method=None, options=None):
response = requests.request(method, path, **options)
return json.dumps(response.json())
code = myRequest(
path=authorize_url,
method='GET',
options={
'headers':{
'response_type': 'code',
'client_id': CLIENT_ID,
}
}
)