【发布时间】:2019-02-09 06:26:26
【问题描述】:
我正在尝试将 Fitbit SDK 集成到我的 iOS 应用程序中。我已经在 fitbit 上创建了项目,现在我在 Postman 中运行 API 来检查个人资料,但作为响应,它向我显示了无效的访问令牌,
{
"errors": [
{
"errorType": "invalid_token",
"message": "Access token invalid: 39ec7defa6f0e33b314bbf6217279b15. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}
这是我的 API https://api.fitbit.com/1/user/-/profile.json 这就是我在标头中传递的内容 Authorization : Bearer Client Secret 但它向我显示状态代码 401 有无效访问令牌错误。如何获取我的应用的访问令牌?
【问题讨论】: