Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access Not Configured. +1 API

I'm trying to get shares counts from Google+ using the Google+ API and catch only error:

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.

After that I visit recommended link and catch pos.googleapis.com not found. How to enable this API?

like image 536
Andrzej Moroz Avatar asked Jun 07 '17 11:06

Andrzej Moroz


1 Answers

In order to access Google APIs you need to register your application on Google developer console. You have probably already created your credentials. The API key or Oauth2 credentials you created identifies the application to Google. The project that was used to create the API key or Oauth2 credentials you are using must have the Google+ API enabled.

Enable API:

What you have forgotten to do is to tell Google which APis you will be accessing. On the Left hand side look for "Library" find the Google+ api and enable it.

Error pos.googleapis.com

enter image description here

Means that you do not have access to the project 383866521277 or it was deleted. The person who created the project must enable the Google+ api for you. Remember this is denoted by the The API key or Oauth2 credentials you created and are using in your code.

like image 160
DaImTo Avatar answered Nov 05 '22 06:11

DaImTo