使用 API 密钥获取任务数据

发布于 2024-11-16 04:50:50 字数 630 浏览 3 评论 0原文

我正在尝试使用 API 密钥获取谷歌任务数据。

我已经提到了下面的链接。 http://code.google.com/p/google-api-java-client/source/browse/tasks-v1-json-oauth2-android-sample/src/com/google/api/ client/sample/tasks/v1/android/TasksSample.java?repo=samples

在上面的链接中,提到从 Google 任务 API 访问获取 API 密钥。 但我不知道如何通过代码获取这个API密钥。

API密钥与谷歌帐户相关吗? 如果它与谷歌帐户相关,那么对于不同的谷歌帐户来说它是唯一的吗? 或者 API密钥是否与应用程序相关(用于获取任务数据)?

如何通过代码获取google Tasks API密钥?

I am trying to get google tasks data using API key.

I have referred below link.
http://code.google.com/p/google-api-java-client/source/browse/tasks-v1-json-oauth2-android-sample/src/com/google/api/client/sample/tasks/v1/android/TasksSample.java?repo=samples

In the above link, it is mentioned that get the API key from Google tasks API access.
But I do not know exactly how to get this API key through code.

Is API key related google accounts?
If it is related to google account, then is it unique for different google accounts?
or
Is API key related to application (which is used to get tasks data)?

how to get google Tasks API key through code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伤痕我心 2024-11-23 04:50:50

Google API 控制台生成 API 密钥。 API 密钥链接到 Google 帐户,并且对于每个帐户都是唯一的。

Generate the API key from Google API Console. The API key is linked to the Google Account and will be unique to each account.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文