Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
hideki_miura
3 years agoNew member | Level 2
トークンの有効期限
APIトークンの有効期限について 年契約して一年後に更新した場合にAPIのトークンも取り直しど変わるのでしょうか
tkbuild
3 years agoExplorer | Level 3
DropboxApi でリフレッシュトークンから使い捨てのアクセストークンを再発行しますが、
その際にアクセストークン有効期限を短くする方法を探しています
現状は8時間となっているので、可能であれば5分程度に抑えたい
<Curl>
curl https://api.dropbox.com/oauth2/token \
-d refresh_token=REFRESHTOKENHERE \
-d grant_type=refresh_token \
-d client_id=APPKEYHERE \
-d client_secret=APPSECRETHERE
{
"uid": "11111111111111",
"access_token": "Your_Access_token",
"expires_in": 14400,
"token_type": "bearer",
"scope": "files.content.read files.metadata.read sharing.read sharing.write",
}
参考
Dropbox API: アプリの権限とアクセス トークンの移行(3-4)
※参考先には有効期限の設定方法が乗っているが、
現在のDropboxApiの画面には存在しなくなっている
宜しくお願い致します。
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,954 PostsLatest Activity: 7 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!