再加上谷歌为Android坏的访问令牌 [英] Google plus for android bad access token

查看:201
本文介绍了再加上谷歌为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.

这篇关于再加上谷歌为Android坏的访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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