再加上谷歌为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"
}
}
当我要的API资源管理器,并使用它们令牌它工作得很好。
任何想法我缺少什么?
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.