Example clients of the Google Consumer Surveys API.
- python: Python version of the library resides here.
- src: Python source code for the example client library.
-
Create or select a project from the Google Developers Console.
-
Decide if you want to use an OAuth 2.0 client ID or a service account. Refer to the API documentation for details.
-
Generate an OAuth 2.0 client ID to authenticate with the Consumer Surveys API
-
Select the "Other" Application Type for the new Client ID. This is necessary to execute the example clients in this repo.
-
After the client has been created, download the JSON file containing the OAuth 2.0 client secrets file. You will pass this to your client code in order to authenticate with the API.
-
The first time you execute the local client with these credentials, the program will open a web browser that will request that you accept the various OAuth scope permissions that are required by the client.
-
Generate Service Account credentials to authenticate with the Consumer Surveys API
-
Upon creating the Service Account, the UI will download a file containing the necessary credentials. Store this in a safe place (you cannot download it again.) Also make note of the "Email address" of the newly created Service Account, you will need to pass that to the example client code.