cja_get_annotations {cjar} | R Documentation |
Get list of annotations
Description
Retrieve all annotations or filter to return only one
Usage
cja_get_annotations(
id = NULL,
expansion = NULL,
includeType = "all",
locale = "en_US",
filterByModifiedAfter = NULL,
filterByDateRange = NULL,
limit = 10,
page = 0,
debug = FALSE
)
Arguments
id |
Filter the results to one specific annotation by the annotation id. If not used, a list of annotations will be returned limited by the 'limit' and 'page' arguments. |
expansion |
Obtain additional information around an annotation. You can include multiple expansions using the 'c()' function. See details for options. |
includeType |
Include additional segments not owned by the user. Available values are |
locale |
A query string that returns strings localized by Adobe into the desired language. Localization does not apply to user-defined fields, such as annotation names. See details for options. |
filterByModifiedAfter |
An ISO 8601 date that returns only annotations that were modified after the desired date. example datetime format: 'YYYY-MM-DDTHH:MM:SSZ' |
filterByDateRange |
Two ISO 8601 dates separated by a forward slash (/) that returns only annotations that fully reside within the desired date range. example format: 'MM:SSZ/YYYY-MM-DDTHH:MM:SSZ' |
limit |
An integer that represents the number of results per page. Default is 10 |
page |
An integer that represents which page to return results. The first page is 0. The API supports up to 1000 pages |
debug |
Include the output and input of the api call in the console for debugging. Default is FALSE |
Details
Expansion options include the following:
-
name: The name of the annotation.
-
description The annotation's description.
-
dateRange The date range of the annotation.
-
color: An enum representing the annotation's color. Supported values include STANDARD1 through STANDARD9. These correspond with 'blue', 'purple', 'green', 'orange', 'red', 'light green', 'pink', 'dark green', and 'yellow', in that order.
-
applyToAllReports: A boolean that determines if the annotation applies to all report suites.
-
scope: An object including the metrics and filters that the annotation uses.
-
createdDate: The date that the annotation was created.
-
modifiedDate: The date that the annotation was last modified.
-
modifiedById: The ID of the user who last modified the annotation.
-
tags: The tags applied to the annotation.
-
shares: The shares applied to the annotation.
-
approved: A boolean that determines if the annotation is approved by an admin.
-
favorite: A boolean that determines if the user has this annotation favorited (starred).
-
usageSummary: An object that shows where this annotation is used.
-
owner: An object showing the ID, name, and login of the user that created the annotation.
-
imsOrgId: The IMS org of the annotation.
-
dataName: The Data View name.
-
dataId: The Data View ID.
-
Locale options include the following:
-
en_US: English
-
fr_FR: French
-
ja_JP: Japanese
-
de_DE: German
-
es_ES: Spanish
-
ko_KR: Korean
-
pt_PR: Brazilian Portuguese
-
zh_CN: Simplified Chinese
-
zh_TW: Traditional Chinese
-
Value
A data frame of segments and their meta data.