| get_associations | R Documentation |
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.
get_associations(x)
x |
A |
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.
set_integrations(), get_integrations(), get_integration()
Other oauth integration functions:
create_integration(),
delete_integration(),
get_integration(),
get_integrations(),
set_integrations(),
update_integration()
Other content functions:
content_delete(),
content_item(),
content_title(),
content_update(),
create_random_name(),
dashboard_url(),
delete_thumbnail(),
delete_vanity_url(),
deploy_repo(),
get_bundles(),
get_environment(),
get_image(),
get_job(),
get_jobs(),
get_log(),
get_thumbnail(),
get_vanity_url(),
git,
has_thumbnail(),
lock_content(),
permissions,
search_content(),
set_image_path(),
set_integrations(),
set_run_as(),
set_thumbnail(),
set_vanity_url(),
swap_vanity_url(),
swap_vanity_urls(),
terminate_jobs(),
verify_content_name()
## Not run:
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)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.