Before you can send requests to G Suite Activity API, you need to tell Google about your client and activate access to the API. You do this by using the Google API Console to create a project, which is a named collection of settings and API access information.
To get started using G Suite Activity API, you need to first use the setup tool, which guides you through creating a project in the Google API Console, enabling the API, and creating credentials.
- From the Credentials page, click Create credentials > OAuth client ID to create your OAuth 2.0 credentials or Create credentials > Service account key to create a service account.
- If you created an OAuth client ID, then select your application type.
- Fill in the form and click Create.