0

I am trying to write a python script that will get the number click on my goo.gl shorteded URL. I figured I could try and get this sample to work first:

https://github.com/google/google-api-python-client/tree/master/samples/urlshortener

I have my client_secrets.json filled out like so (actually client_id and client_secret are obfuscated) here:

{
  "other": {
    "client_id": "[['mYcLIent_1dapps.googleusercontent.com']]",
    "client_secret": "[['mYCLient_53cr3t']]",
    "redirect_uris": [],
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://accounts.google.com/o/oauth2/token"
  }
}

But when I execute the script I get this:

$ ./urlshortener.py --logging_level=DEBUG
WARNING: Please configure OAuth 2.0

To make this sample run you will need to populate the client_secrets.json file
found at:

   ./client_secrets.json

with information from the APIs Console <https://code.google.com/apis/console>.
4

0 に答える 0