Skip to content

riseofthetigers/consumer-surveys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example clients of the Google Consumer Surveys API.

Contents

  • python: Python version of the library resides here.
    • src: Python source code for the example client library.

Enabling the API in the Google Developer Console

  1. Create or select a project from the Google Developers Console.

  2. Select the Consumer Surveys API from your project dashboard Screenshot of selecting the Consumer Surveys API

  3. Enable the Consumer Surveys API in your project Screenshot of enabling the Consumer Surveys API

  4. 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

    1. Select the Credentials menu in your project Screenshot of selecting Credentials

    2. Select the OAuth 2.0 client ID option Screenshot of selecting OAuth 2.0 client

    3. Select the "Other" Application Type for the new Client ID. This is necessary to execute the example clients in this repo. Screenshot of selecting Other Application Type

    4. 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. Screenshot of selecting the button to download the OAuth 2.0 credentials

    5. 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. Screenshot of the OAuth 2.0 permission screen

  • Generate Service Account credentials to authenticate with the Consumer Surveys API

    1. Select the Credentials menu in your project Screenshot of selecting Credentials

    2. Select the Service Account option Screenshot of selecting Service Account

    3. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 79.7%
  • C# 11.3%
  • Python 9.0%