How exactly does one retrieve valid Client ID and Client Secret? I attempted to do so by parsing the JSON returned by "Create Credentials" > "Service Account Key" at the following link?
The JSON file I've retrieved only has the following keys (and the "client_id" is only an integer, with no domain after a hyphen):
The following link might be helpful: https://developers.google.com/identity/protocols/application-default-credentials?hl=en_US
Thanks in advance for any clues. If this is a common stumbling block for people, I could add further instructions to the documentation.
btw, if you are (like us) on python3 with a buggy httplib2 that refuses to connect to a proxy server, the hack below makes oauthlib2 use requests instead of
then, one can do
httpclient = DropInHttplib() credentials = oauth2client.tools.run_flow(flow, storage, flags, httpclient)
and we needed to modify the flags so that it would work on a server (where we could not open a browser window)
flags = argparse.ArgumentParser(parents=[oauth2client.tools.argparser]).parse_args(["--noauth_local_webserver"])