Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics updates #127

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.6.6] - 2024-11-04
- Analytics updates (ccv, views, ...)

## [1.6.5] - 2024-10-21
- Add summary feature

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>video.api</groupId>
<artifactId>android-api-client</artifactId>
<version>1.6.5</version>
<version>1.6.6</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -82,7 +82,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
implementation "video.api:android-api-client:1.6.5"
implementation "video.api:android-api-client:1.6.6"
```

#### Others
Expand All @@ -95,7 +95,7 @@ mvn clean package

Then manually install the following JARs:

* `target/android-api-client-1.6.5.jar`
* `target/android-api-client-1.6.6.jar`
* `target/lib/*.jar`

### Code sample
Expand Down
384 changes: 363 additions & 21 deletions api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'maven-publish'
apply plugin: 'kotlin-android'

group = 'video.api'
version = '1.6.5'
version = '1.6.6'

buildscript {
repositories {
Expand Down
13 changes: 12 additions & 1 deletion docs/AnalyticsAggregatedMetricsResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional]
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric and relevant parameters you selected. | [optional]
**aggregation** | [**AggregationEnum**](#AggregationEnum) | Returns the aggregation you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand All @@ -22,6 +22,17 @@ END | &quot;end&quot;
IMPRESSION | &quot;impression&quot;
IMPRESSION_TIME | &quot;impression-time&quot;
WATCH_TIME | &quot;watch-time&quot;
CCV | &quot;ccv&quot;
UNIQUE_CCV | &quot;unique-ccv&quot;
VIEW_3 | &quot;view-3&quot;
VIEW_5 | &quot;view-5&quot;
VIEW_10 | &quot;view-10&quot;
VIEW_30 | &quot;view-30&quot;
UNIQUE_VIEW | &quot;unique-view&quot;
UNIQUE_VIEW_3 | &quot;unique-view-3&quot;
UNIQUE_VIEW_5 | &quot;unique-view-5&quot;
UNIQUE_VIEW_10 | &quot;unique-view-10&quot;
UNIQUE_VIEW_30 | &quot;unique-view-30&quot;



Expand Down
72 changes: 51 additions & 21 deletions docs/AnalyticsApi.md

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion docs/AnalyticsMetricsBreakdownResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional]
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric and relevant parameters you selected. | [optional]
**breakdown** | [**BreakdownEnum**](#BreakdownEnum) | Returns the dimension you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand All @@ -21,6 +21,19 @@ PLAY_RATE | &quot;play-rate&quot;
START | &quot;start&quot;
END | &quot;end&quot;
IMPRESSION | &quot;impression&quot;
CCV_AVERAGE | &quot;ccv-average&quot;
CCV_PEAK | &quot;ccv-peak&quot;
UNIQUE_CCV_AVERAGE | &quot;unique-ccv-average&quot;
UNIQUE_CCV_PEAK | &quot;unique-ccv-peak&quot;
VIEW_3 | &quot;view-3&quot;
VIEW_5 | &quot;view-5&quot;
VIEW_10 | &quot;view-10&quot;
VIEW_30 | &quot;view-30&quot;
UNIQUE_VIEW | &quot;unique-view&quot;
UNIQUE_VIEW_3 | &quot;unique-view-3&quot;
UNIQUE_VIEW_5 | &quot;unique-view-5&quot;
UNIQUE_VIEW_10 | &quot;unique-view-10&quot;
UNIQUE_VIEW_30 | &quot;unique-view-30&quot;



Expand Down
2 changes: 1 addition & 1 deletion docs/AnalyticsMetricsOverTimeResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | [**AnalyticsMetricsOverTimeResponseContext**](AnalyticsMetricsOverTimeResponseContext.md) | |
**data** | [**List&lt;AnalyticsMetricsOverTimeResponseData&gt;**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps . |
**data** | [**List&lt;AnalyticsMetricsOverTimeResponseData&gt;**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps. |
**pagination** | [**Pagination**](Pagination.md) | |


Expand Down
16 changes: 15 additions & 1 deletion docs/AnalyticsMetricsOverTimeResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric you selected. | [optional]
**metric** | [**MetricEnum**](#MetricEnum) | Returns the metric and relevant parameters you selected. | [optional]
**interval** | [**IntervalEnum**](#IntervalEnum) | Returns the interval you selected. | [optional]
**timeframe** | [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand All @@ -21,13 +21,27 @@ PLAY_RATE | &quot;play-rate&quot;
START | &quot;start&quot;
END | &quot;end&quot;
IMPRESSION | &quot;impression&quot;
CCV_AVERAGE | &quot;ccv-average&quot;
CCV_PEAK | &quot;ccv-peak&quot;
UNIQUE_CCV_AVERAGE | &quot;unique-ccv-average&quot;
UNIQUE_CCV_PEAK | &quot;unique-ccv-peak&quot;
VIEW_3 | &quot;view-3&quot;
VIEW_5 | &quot;view-5&quot;
VIEW_10 | &quot;view-10&quot;
VIEW_30 | &quot;view-30&quot;
UNIQUE_VIEW | &quot;unique-view&quot;
UNIQUE_VIEW_3 | &quot;unique-view-3&quot;
UNIQUE_VIEW_5 | &quot;unique-view-5&quot;
UNIQUE_VIEW_10 | &quot;unique-view-10&quot;
UNIQUE_VIEW_30 | &quot;unique-view-30&quot;



## Enum: IntervalEnum

Name | Value
---- | -----
MINUTE | &quot;minute&quot;
HOUR | &quot;hour&quot;
DAY | &quot;day&quot;

Expand Down
1 change: 1 addition & 0 deletions docs/FilterBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**operatingSystem** | **List&lt;String&gt;** | Returns analytics based on the operating system used by the viewers. Response values can include &#x60;windows&#x60;, &#x60;mac osx&#x60;, &#x60;android&#x60;, &#x60;ios&#x60;, &#x60;linux&#x60;. | [optional]
**browser** | **List&lt;String&gt;** | Returns analytics based on the browser used by the viewers. Response values can include &#x60;chrome&#x60;, &#x60;firefox&#x60;, &#x60;edge&#x60;, &#x60;opera&#x60;. | [optional]
**tag** | **String** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**referrer** | **List&lt;URI&gt;** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing &#x60;/&#x60; characters if needed. - The URLs you add must be URL encoded. | [optional]



Expand Down
1 change: 1 addition & 0 deletions docs/FilterBy1.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**operatingSystem** | **List&lt;String&gt;** | Returns analytics based on the operating system used by the viewers. Response values can include &#x60;windows&#x60;, &#x60;mac osx&#x60;, &#x60;android&#x60;, &#x60;ios&#x60;, &#x60;linux&#x60;. | [optional]
**browser** | **List&lt;String&gt;** | Returns analytics based on the browser used by the viewers. Response values can include &#x60;chrome&#x60;, &#x60;firefox&#x60;, &#x60;edge&#x60;, &#x60;opera&#x60;. | [optional]
**tag** | **String** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**referrer** | **List&lt;URI&gt;** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing &#x60;/&#x60; characters if needed. - The URLs you add must be URL encoded. | [optional]



Expand Down
1 change: 1 addition & 0 deletions docs/FilterBy2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**operatingSystem** | **List&lt;String&gt;** | Returns analytics based on the operating system used by the viewers. Response values can include &#x60;windows&#x60;, &#x60;mac osx&#x60;, &#x60;android&#x60;, &#x60;ios&#x60;, &#x60;linux&#x60;. | [optional]
**browser** | **List&lt;String&gt;** | Returns analytics based on the browser used by the viewers. Response values can include &#x60;chrome&#x60;, &#x60;firefox&#x60;, &#x60;edge&#x60;, &#x60;opera&#x60;. | [optional]
**tag** | **String** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**referrer** | **List&lt;URI&gt;** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing &#x60;/&#x60; characters if needed. - The URLs you add must be URL encoded. | [optional]



Expand Down
4 changes: 2 additions & 2 deletions maven-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

def isReleaseBuild() {
return !"1.6.5".contains("SNAPSHOT")
return !"1.6.6".contains("SNAPSHOT")
}

def getReleaseRepositoryUrl() {
Expand Down Expand Up @@ -57,7 +57,7 @@ afterEvaluate {

groupId = "video.api"
artifactId = "android-api-client"
version = "1.6.5"
version = "1.6.6"

pom {
name = "video.api:android-api-client"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>android-api-client</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>1.6.5</version>
<version>1.6.6</version>
<url>https://github.com/apivideo/api.video-android-client</url>
<description>The official Android api.video client</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/video/api/client/api/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private OkHttpClient initHttpClient(List<Interceptor> interceptors) {
private void init() {
verifyingSsl = true;
json = new JSON();
addDefaultHeader("AV-Origin-Client", "android:1.6.5");
addDefaultHeader("AV-Origin-Client", "android:1.6.6");
}

private boolean isValid(String regex, String field) {
Expand Down
Loading
Loading