【发布时间】:2014-04-02 19:30:02
【问题描述】:
我一直在开发 Java 语言应用程序。
现在我正在尝试将登录的用户照片显示为用户数据的一部分,但我似乎没有做对。
通过 UserService 我获取用户 ID,并使用用户 ID 和我的应用程序 api 密钥,我正在尝试构建图像 url 以将其加载到我的应用程序中。
但它不起作用。
我正在构建的网址是:https://www.googleapis.com/plus/v1/people/{USER_ID}?fields=image&key={API_KEY}
但我一直收到同样的错误:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
我还在 Google Developers Console 中启用了以下 API:
Drive API
Drive SDK
Google Cloud SQL
Google Compute Engine
Google Picker API
Google+ API
任何人都可以帮我解决这个问题吗?对不起,如果我在一些明显的事情上浪费你的时间。
【问题讨论】:
-
可以直接在
Json文件中获取图片url,但是我不懂Java
标签: java google-plus