访问未配置。 +1 API

Access Not Configured. +1 API

我正在尝试使用 Google+ API 从 Google+ 获取分享数,但只捕获错误:

Access Not Configured. +1 API has not been used in project 383866521277 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/pos.googleapis.com/overview?project=383866521277 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

之后我访问推荐的 link 并发现 pos.googleapis.com 未找到。如何启用这个 API?

为了访问 Google API,您需要在 Google developer console 上注册您的应用程序。您可能已经创建了凭据。您创建的 API 密钥或 Oauth2 凭据将应用程序标识为 Google。用于创建 API 密钥或您正在使用的 Oauth2 凭据的项目必须启用 Google+ API。

启用API:

您忘记告诉 Google 您将访问哪些 API。在左侧寻找 "Library" 找到 Google+ api 并启用它。

错误pos.googleapis.com

表示您无权访问项目383866521277或已被删除。创建项目的人必须为您启用 Google+ api。请记住,这由您创建并在代码中使用的 API 密钥或 Oauth2 凭据表示。