Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- youTubeAnalyticsService :: ServiceConfig
- youTubeScope :: Proxy '["https://www.googleapis.com/auth/youtube"]
- youTubeAnalyticsReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/yt-analytics.readonly"]
- youTubePartnerScope :: Proxy '["https://www.googleapis.com/auth/youtubepartner"]
- youTubeAnalyticsMonetaryReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/yt-analytics-monetary.readonly"]
- youTubeReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/youtube.readonly"]
- data GroupContentDetails
- groupContentDetails :: GroupContentDetails
- gcdItemType :: Lens' GroupContentDetails (Maybe Text)
- gcdItemCount :: Lens' GroupContentDetails (Maybe Word64)
- data Group
- group' :: Group
- gEtag :: Lens' Group (Maybe Text)
- gSnippet :: Lens' Group (Maybe GroupSnippet)
- gKind :: Lens' Group Text
- gContentDetails :: Lens' Group (Maybe GroupContentDetails)
- gId :: Lens' Group (Maybe Text)
- data GroupItemResource
- groupItemResource :: GroupItemResource
- girKind :: Lens' GroupItemResource (Maybe Text)
- girId :: Lens' GroupItemResource (Maybe Text)
- data ResultTableColumnHeadersItem
- resultTableColumnHeadersItem :: ResultTableColumnHeadersItem
- rtchiColumnType :: Lens' ResultTableColumnHeadersItem (Maybe Text)
- rtchiName :: Lens' ResultTableColumnHeadersItem (Maybe Text)
- rtchiDataType :: Lens' ResultTableColumnHeadersItem (Maybe Text)
- data ResultTable
- resultTable :: ResultTable
- rtKind :: Lens' ResultTable Text
- rtRows :: Lens' ResultTable [[JSONValue]]
- rtColumnHeaders :: Lens' ResultTable [ResultTableColumnHeadersItem]
- data BatchReportDefinition
- batchReportDefinition :: BatchReportDefinition
- brdStatus :: Lens' BatchReportDefinition (Maybe Text)
- brdKind :: Lens' BatchReportDefinition Text
- brdName :: Lens' BatchReportDefinition (Maybe Text)
- brdId :: Lens' BatchReportDefinition (Maybe Text)
- brdType :: Lens' BatchReportDefinition (Maybe Text)
- data BatchReport
- batchReport :: BatchReport
- brTimeUpdated :: Lens' BatchReport (Maybe UTCTime)
- brKind :: Lens' BatchReport Text
- brReportId :: Lens' BatchReport (Maybe Text)
- brTimeSpan :: Lens' BatchReport (Maybe BatchReportTimeSpan)
- brOutputs :: Lens' BatchReport [BatchReportOutputsItem]
- brId :: Lens' BatchReport (Maybe Text)
- data GroupSnippet
- groupSnippet :: GroupSnippet
- gsPublishedAt :: Lens' GroupSnippet (Maybe UTCTime)
- gsTitle :: Lens' GroupSnippet (Maybe Text)
- data GroupItem
- groupItem :: GroupItem
- giEtag :: Lens' GroupItem (Maybe Text)
- giKind :: Lens' GroupItem Text
- giResource :: Lens' GroupItem (Maybe GroupItemResource)
- giGroupId :: Lens' GroupItem (Maybe Text)
- giId :: Lens' GroupItem (Maybe Text)
- data BatchReportDefinitionList
- batchReportDefinitionList :: BatchReportDefinitionList
- brdlKind :: Lens' BatchReportDefinitionList Text
- brdlItems :: Lens' BatchReportDefinitionList [BatchReportDefinition]
- data BatchReportList
- batchReportList :: BatchReportList
- brlKind :: Lens' BatchReportList Text
- brlItems :: Lens' BatchReportList [BatchReport]
- data BatchReportOutputsItem
- batchReportOutputsItem :: BatchReportOutputsItem
- broiFormat :: Lens' BatchReportOutputsItem (Maybe Text)
- broiDownloadURL :: Lens' BatchReportOutputsItem (Maybe Text)
- broiType :: Lens' BatchReportOutputsItem Text
- data BatchReportTimeSpan
- batchReportTimeSpan :: BatchReportTimeSpan
- brtsStartTime :: Lens' BatchReportTimeSpan (Maybe UTCTime)
- brtsEndTime :: Lens' BatchReportTimeSpan (Maybe UTCTime)
- data GroupItemListResponse
- groupItemListResponse :: GroupItemListResponse
- gilrEtag :: Lens' GroupItemListResponse (Maybe Text)
- gilrKind :: Lens' GroupItemListResponse Text
- gilrItems :: Lens' GroupItemListResponse [GroupItem]
- data GroupListResponse
- groupListResponse :: GroupListResponse
- glrEtag :: Lens' GroupListResponse (Maybe Text)
- glrNextPageToken :: Lens' GroupListResponse (Maybe Text)
- glrKind :: Lens' GroupListResponse Text
- glrItems :: Lens' GroupListResponse [Group]
Service Configuration
youTubeAnalyticsService :: ServiceConfig Source #
Default request referring to version v1
of the YouTube Analytics API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
youTubeScope :: Proxy '["https://www.googleapis.com/auth/youtube"] Source #
Manage your YouTube account
youTubeAnalyticsReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/yt-analytics.readonly"] Source #
View YouTube Analytics reports for your YouTube content
youTubePartnerScope :: Proxy '["https://www.googleapis.com/auth/youtubepartner"] Source #
View and manage your assets and associated content on YouTube
youTubeAnalyticsMonetaryReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/yt-analytics-monetary.readonly"] Source #
View monetary and non-monetary YouTube Analytics reports for your YouTube content
youTubeReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/youtube.readonly"] Source #
View your YouTube account
GroupContentDetails
data GroupContentDetails Source #
groupContentDetails :: GroupContentDetails Source #
Creates a value of GroupContentDetails
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Group
GroupItemResource
data GroupItemResource Source #
groupItemResource :: GroupItemResource Source #
Creates a value of GroupItemResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ResultTableColumnHeadersItem
data ResultTableColumnHeadersItem Source #
resultTableColumnHeadersItem :: ResultTableColumnHeadersItem Source #
Creates a value of ResultTableColumnHeadersItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtchiColumnType :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source #
The type of the column (DIMENSION or METRIC).
rtchiName :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source #
The name of the dimension or metric.
rtchiDataType :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source #
The type of the data in the column (STRING, INTEGER, FLOAT, etc.).
ResultTable
data ResultTable Source #
Contains a single result table. The table is returned as an array of rows that contain the values for the cells of the table. Depending on the metric or dimension, the cell can contain a string (video ID, country code) or a number (number of views or number of likes).
See: resultTable
smart constructor.
resultTable :: ResultTable Source #
Creates a value of ResultTable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtKind :: Lens' ResultTable Text Source #
This value specifies the type of data included in the API response. For the query method, the kind property value will be youtubeAnalytics#resultTable.
rtRows :: Lens' ResultTable [[JSONValue]] Source #
The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the columnHeaders field. If no data is available for the given query, the rows element will be omitted from the response. The response for a query with the day dimension will not contain rows for the most recent days.
rtColumnHeaders :: Lens' ResultTable [ResultTableColumnHeadersItem] Source #
This value specifies information about the data returned in the rows fields. Each item in the columnHeaders list identifies a field returned in the rows value, which contains a list of comma-delimited data. The columnHeaders list will begin with the dimensions specified in the API request, which will be followed by the metrics specified in the API request. The order of both dimensions and metrics will match the ordering in the API request. For example, if the API request contains the parameters dimensions=ageGroup,gender&metrics=viewerPercentage, the API response will return columns in this order: ageGroup,gender,viewerPercentage.
BatchReportDefinition
data BatchReportDefinition Source #
Contains single batchReportDefinition resource.
See: batchReportDefinition
smart constructor.
brdKind :: Lens' BatchReportDefinition Text Source #
This value specifies the type of data of this item. For batch report definition the kind property value is youtubeAnalytics#batchReportDefinition.
brdId :: Lens' BatchReportDefinition (Maybe Text) Source #
The ID that YouTube assigns and uses to uniquely identify the report definition.
BatchReport
data BatchReport Source #
Contains single batchReport resource.
See: batchReport
smart constructor.
batchReport :: BatchReport Source #
Creates a value of BatchReport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brTimeUpdated :: Lens' BatchReport (Maybe UTCTime) Source #
The time when the report was updated.
brKind :: Lens' BatchReport Text Source #
This value specifies the type of data of this item. For batch report the kind property value is youtubeAnalytics#batchReport.
brReportId :: Lens' BatchReport (Maybe Text) Source #
The ID of the the report definition.
brTimeSpan :: Lens' BatchReport (Maybe BatchReportTimeSpan) Source #
Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive.
brOutputs :: Lens' BatchReport [BatchReportOutputsItem] Source #
Report outputs.
brId :: Lens' BatchReport (Maybe Text) Source #
The ID that YouTube assigns and uses to uniquely identify the report.
GroupSnippet
data GroupSnippet Source #
groupSnippet :: GroupSnippet Source #
Creates a value of GroupSnippet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
GroupItem
BatchReportDefinitionList
data BatchReportDefinitionList Source #
A paginated list of batchReportDefinition resources returned in response to a youtubeAnalytics.batchReportDefinitions.list request.
See: batchReportDefinitionList
smart constructor.
batchReportDefinitionList :: BatchReportDefinitionList Source #
Creates a value of BatchReportDefinitionList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brdlKind :: Lens' BatchReportDefinitionList Text Source #
This value specifies the type of data included in the API response. For the list method, the kind property value is youtubeAnalytics#batchReportDefinitionList.
brdlItems :: Lens' BatchReportDefinitionList [BatchReportDefinition] Source #
A list of batchReportDefinition resources that match the request criteria.
BatchReportList
data BatchReportList Source #
A paginated list of batchReport resources returned in response to a youtubeAnalytics.batchReport.list request.
See: batchReportList
smart constructor.
batchReportList :: BatchReportList Source #
Creates a value of BatchReportList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brlKind :: Lens' BatchReportList Text Source #
This value specifies the type of data included in the API response. For the list method, the kind property value is youtubeAnalytics#batchReportList.
brlItems :: Lens' BatchReportList [BatchReport] Source #
A list of batchReport resources that match the request criteria.
BatchReportOutputsItem
batchReportOutputsItem :: BatchReportOutputsItem Source #
Creates a value of BatchReportOutputsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
broiFormat :: Lens' BatchReportOutputsItem (Maybe Text) Source #
Format of the output.
broiDownloadURL :: Lens' BatchReportOutputsItem (Maybe Text) Source #
Cloud storage URL to download this report. This URL is valid for 30 minutes.
BatchReportTimeSpan
data BatchReportTimeSpan Source #
Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive.
See: batchReportTimeSpan
smart constructor.
batchReportTimeSpan :: BatchReportTimeSpan Source #
Creates a value of BatchReportTimeSpan
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brtsStartTime :: Lens' BatchReportTimeSpan (Maybe UTCTime) Source #
Start of the period included in the report. Inclusive.
brtsEndTime :: Lens' BatchReportTimeSpan (Maybe UTCTime) Source #
End of the period included in the report. Inclusive. For reports containing all entities endTime is not set.
GroupItemListResponse
data GroupItemListResponse Source #
A paginated list of grouList resources returned in response to a youtubeAnalytics.groupApi.list request.
See: groupItemListResponse
smart constructor.
groupItemListResponse :: GroupItemListResponse Source #
Creates a value of GroupItemListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
GroupListResponse
data GroupListResponse Source #
A paginated list of grouList resources returned in response to a youtubeAnalytics.groupApi.list request.
See: groupListResponse
smart constructor.
groupListResponse :: GroupListResponse Source #
Creates a value of GroupListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired: