php - 保管箱中的令牌到期问题
问题描述
我尝试了这段代码来获取访问令牌,因为它给了我这个错误。
curl https://api.dropbox.com/oauth2/token \
-d grant_type=refresh_token \
-d refresh_token=<REFRESH_TOKEN> \
-u <APP_KEY>:<APP_SECRET>
收到此错误
Client error: `POST https://api.dropbox.com/oauth2/token` resulted in a `400 Bad Request` response: {"error_description": "refresh token is malformed", "error": "invalid_grant"}
代码将在一段时间后过期,所以我必须从 Dropbox 网站手动放置令牌
https://www.dropbox.com/developers/documentation/http/documentation
令牌是这样的
sl.A5gzYO9XTUXHhxYB0qLnP-Ycp9nDP4w1Jwr0g5p-DdsfSD,MFN4KBk6i1DCgeoN13zd2-BG6XwO_TQO95_N9e84ZD_C7uSNcp--GHrDmLqIfFVRsvNPRNFqL9HiVeBhm_C
解决方案
推荐阅读
- vba - 如何使用 vba 宏按钮在 power point 幻灯片放映期间添加和调整形状?
- kubernetes - 删除“preview”和“jx-staging”环境下分别通过“jx preview”和“jx promote”部署的服务的k8s资源
- reactjs - 使用 useDispatch Hook 时出现问题 - 警告:React 检测到 Hook 的顺序发生了变化
- c++ - 在 CMAKE target_include_libraries 中理解“接口”的问题
- android - Flutter:Json解析
- c# - 如何在特定时区向 DateTime 添加一天
- javascript - 如何通过调用函数来更改输入类型文件的值?
- python - 为什么 CNN 有时会犯高度自信的错误,如何解决这个问题?
- json - 使用 Newtonsoft 使用与解决方案无关的方法对 Json 进行序列化/反序列化
- excel - 如何在 Excel VBA 代码编辑器中关闭自动大写