Q:

Google API Python client error

I want to have a script for getting home feed of Google+. I use for that google's  script. The client-secrets.json file is:
{
 "web": {
   "client_id": "##########",
   "client_secret": "############",
   "redirect_uris": ["http://localhost:8080/oauth2callback/"],
   "auth_uri": "https://accounts.google.com/o/oauth2/auth",
   "token_uri": "https://accounts.google.com/o/oauth2/token",
   "client_email":"##########@developer.gserviceaccount.com",
   "javascript_origins":["http://localhost:8080/"]
        }
}

But when i want to start this app, it opens a page with error and broken robot: 
The redirect URI in the request: http://localhost:8080/ did not match a registered redirect URI
Please, help me with my problem. 

A:

I found the solution! You should create another Client ID, but for desktop application! After that you need to use it's client_id and client_secret. It works for developing without hosting.

