Call API
Action ID:tools.google_api.call_api
Instantiate a Google API client and call a Google API method.
Reference: https://googleapis.github.io/google-api-python-client/docs/dyn/
Secrets
Optional secrets:google_oauth: OAuth tokenGOOGLE_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS.
Input fields
string
required
Google API method name, e.g.
list or get.string
required
Resource path, e.g.
files or spreadsheets.values.string
required
Google API service name, e.g.
drive or sheets.string
required
Google API version, e.g.
v3 or v4.GoogleAPIParams | null
Parameters for the Google API method.Default:
null.array[string] | null
Service account scopes. Defaults to [“https://www.googleapis.com/auth/cloud-platform”].Default:
null.boolean | null
Whether to use the discovery document bundled with the client library. Defaults to the library behaviour (bundled). Set to false to fetch the discovery document at runtime, which is required for API versions that are not bundled (e.g.
securitycenter v2).Default: null.string | null
Optional service account domain-wide delegation subject.Default:
null.Call paginated API
Action ID:tools.google_api.call_paginated_api
Instantiate a Google API client and call a paginated Google API method.
Reference: https://googleapis.github.io/google-api-python-client/docs/dyn/
Secrets
Optional secrets:google_oauth: OAuth tokenGOOGLE_SERVICE_TOKEN.google_api: required valuesGOOGLE_API_CREDENTIALS.
Input fields
string
required
Google API method name, e.g.
list or get.string
required
Resource path, e.g.
files or spreadsheets.values.string
required
Google API service name, e.g.
drive or sheets.string
required
Google API version, e.g.
v3 or v4.integer | null
Maximum number of pages to fetch. If null, fetches every page.Default:
null.string
Dot-separated response path for the next page token. Defaults to “nextPageToken”.Default:
"nextPageToken".string
Request parameter name for the next page token. Defaults to “pageToken”.Default:
"pageToken".GoogleAPIParams | null
Parameters for the Google API method.Default:
null.array[string] | null
Service account scopes. Defaults to [“https://www.googleapis.com/auth/cloud-platform”].Default:
null.boolean | null
Whether to use the discovery document bundled with the client library. Defaults to the library behaviour (bundled). Set to false to fetch the discovery document at runtime, which is required for API versions that are not bundled (e.g.
securitycenter v2).Default: null.string | null
Optional service account domain-wide delegation subject.Default:
null.