Google plus for android 错误访问令牌 [英] Google plus for android bad access token

查看:27
本文介绍了Google plus for android 错误访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注入门登录以获取用户的 access_token.

I been following Getting started and sign in to get access_token of user.

我确实得到了一个访问令牌,但在使用它时出现了这个错误:

I do get an access token but when using it i am getting this error:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "authError",
    "message": "Invalid Credentials",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 401,
  "message": "Invalid Credentials"
 }
}

当我要apis-explorer 并使用他们的令牌它工作得很好.任何想法我错过了什么?

When I am going to apis-explorer and using they token it works just fine. Any ideas what am I missing?

这就是我正在尝试的 URL.

This is then URL I am trying.

https://www.googleapis.com/plus/v1/people/me?key={my_api_key}&access_token=my_access_token

https://www.googleapis.com/plus/v1/people/me?key={my_api_key}&access_token=my_access_token

推荐答案

这些令牌的有效期为 1 小时.

These tokens have a 1 hour expiration period.

这篇关于Google plus for android 错误访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆