Skip to contents

Given a Content object, retrieves a list of its OAuth associations. An association contains a content GUID and an association GUID, and indicates that the integration can be used by the content when it runs.

Usage

get_associations(x)

Arguments

x

A Content object

Value

A list of OAuth integration associations. Each association includes details such as:

  • app_guid: The content item's GUID (deprecated, use content_guid instead).

  • content_guid: The content item's GUID.

  • oauth_integration_guid: The GUID of the OAuth integration.

  • oauth_integration_name: The name of the OAuth integration.

  • oauth_integration_description: A description of the OAuth integration.

  • oauth_integration_template: The template used for this OAuth integration.

  • oauth_integration_auth_type: The authentication type (e.g., "Viewer" or "Service Account").

  • created_time: The timestamp when the association was created.

Examples

if (FALSE) { # \dontrun{
client <- connect()

# Get OAuth associations for an app.
my_app <- content_item(client, "12345678-90ab-cdef-1234-567890abcdef")
my_app_associations <- get_associations(my_app)

# Given those associations, retrieve the integrations themselves.
my_app_integrations <- purrr::map(
  my_app_associations,
  ~ get_integration(client, .x$oauth_integration_guid)
)
} # }