Skip to main content

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 token GOOGLE_SERVICE_TOKEN.
  • google_api: required values GOOGLE_API_CREDENTIALS.

Input fields

method_name
string
required
Google API method name, e.g. list or get.
resource
string
required
Resource path, e.g. files or spreadsheets.values.
service_name
string
required
Google API service name, e.g. drive or sheets.
version
string
required
Google API version, e.g. v3 or v4.
params
GoogleAPIParams | null
Parameters for the Google API method.Default: null.
scopes
array[string] | null
Service account scopes. Defaults to [“https://www.googleapis.com/auth/cloud-platform”].Default: null.
subject
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 token GOOGLE_SERVICE_TOKEN.
  • google_api: required values GOOGLE_API_CREDENTIALS.

Input fields

method_name
string
required
Google API method name, e.g. list or get.
resource
string
required
Resource path, e.g. files or spreadsheets.values.
service_name
string
required
Google API service name, e.g. drive or sheets.
version
string
required
Google API version, e.g. v3 or v4.
next_page_token_path
string
Dot-separated response path for the next page token. Defaults to “nextPageToken”.Default: "nextPageToken".
page_token_param
string
Request parameter name for the next page token. Defaults to “pageToken”.Default: "pageToken".
params
GoogleAPIParams | null
Parameters for the Google API method.Default: null.
scopes
array[string] | null
Service account scopes. Defaults to [“https://www.googleapis.com/auth/cloud-platform”].Default: null.
subject
string | null
Optional service account domain-wide delegation subject.Default: null.