【发布时间】:2013-03-07 15:17:02
【问题描述】:
我现在无法获取已登录 Google 用户的用户名。我想从这个链接获取我需要的数据:
https://accounts.google.com/o/oauth2/auth?
scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&
state=%2Fprofile&
redirect_uri={REDIRECT_URL}
response_type=token&
client_id={CLIENT_ID}
此链接使用 oAuth 进行身份验证并获取我的帐户信息,但我不想使用“Redirect_URL”我只想将数据作为 XML 文件获取并与 JavaScript 一起使用。我希望此链接在我的 Google 协作平台小工具中运行,因此我可以在我的小工具中使用此链接中的数据。
【问题讨论】:
标签: javascript xml oauth-2.0 google-sites google-gadget