diff --git a/config/android.yaml b/config/android.yaml index 2974c2fb..9c87ab24 100644 --- a/config/android.yaml +++ b/config/android.yaml @@ -1,7 +1,9 @@ changelog: + - 1.6.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.6.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.5.7 (2024-04-25): - Add API to get rate limiting headers - 1.5.6 (2024-03-21): diff --git a/config/csharp.yaml b/config/csharp.yaml index fa2ffebe..e219536f 100644 --- a/config/csharp.yaml +++ b/config/csharp.yaml @@ -1,7 +1,9 @@ changelog: + - 1.6.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.6.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.5.0 (2024-07-19): - fix nuget package (closes \#131) - add *Async() methods (closes \#132) diff --git a/config/go.yaml b/config/go.yaml index 97c167d8..2f9d3d6f 100644 --- a/config/go.yaml +++ b/config/go.yaml @@ -1,7 +1,9 @@ changelog: + - 1.4.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.4.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.3.1 (2024-02-19): - Update VideoStatusIngest enum - 1.3.0 (2023-06-28): diff --git a/config/java.yaml b/config/java.yaml index 93a4a709..ebfd91e4 100644 --- a/config/java.yaml +++ b/config/java.yaml @@ -1,7 +1,9 @@ changelog: + - 1.4.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.4.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.3.3 (2024-04-25): - Add API to get rate limiting headers - 1.3.2 (2024-02-19): diff --git a/config/nodejs.yaml b/config/nodejs.yaml index 373a4a7e..68582e57 100644 --- a/config/nodejs.yaml +++ b/config/nodejs.yaml @@ -1,4 +1,6 @@ changelog: + - 2.6.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 2.6.0 (2024-07-29): - Add new analytics methods - Add livestream complete() method diff --git a/config/php.yaml b/config/php.yaml index 5438c88e..c3caffe0 100644 --- a/config/php.yaml +++ b/config/php.yaml @@ -1,7 +1,9 @@ changelog: + - 1.4.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.4.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.3.2 (2024-02-19): - Update VideoStatusIngest enum - 1.3.1 (2023-06-28): diff --git a/config/python.yaml b/config/python.yaml index edcdd37f..8f1b2de9 100644 --- a/config/python.yaml +++ b/config/python.yaml @@ -1,7 +1,9 @@ changelog: + - 1.4.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.4.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.3.2 (2024-07-01): - Fix python "context" error - 1.3.1 (2024-02-19): diff --git a/config/swift5.yaml b/config/swift5.yaml index d4b100c1..2491c2df 100644 --- a/config/swift5.yaml +++ b/config/swift5.yaml @@ -1,7 +1,9 @@ changelog: + - 1.3.1 (2024-09-05): + - Add sort parameters in analytics endpoints - 1.3.0 (2024-07-29): - - Add new analytics methods - - Add livestream complete() method + - Add new analytics methods + - Add livestream complete() method - 1.2.3 (2024-04-25): - Add API to get rate limiting headers - 1.2.2 (2024-02-19): diff --git a/oas_apivideo.yaml b/oas_apivideo.yaml index 5ce48786..07e3345d 100644 --- a/oas_apivideo.yaml +++ b/oas_apivideo.yaml @@ -12004,6 +12004,41 @@ paths: type: string format: date-time example: 2024-02-06T00:00:00+01:00 + - name: sortBy + in: query + description: | + Use this parameter to choose which field the API will use to sort the analytics data. + + These are the available fields to sort by: + + - `metricValue`: Sorts the results based on the **metric** you selected in your request. + - `dimensionValue`: Sorts the results based on the **dimension** you selected in your request. + style: form + explode: false + schema: + type: string + enum: + - metricValue + - dimensionValue + example: metricValue + - name: sortOrder + in: query + description: | + Use this parameter to define the sort order of results. + + These are the available sort orders: + + - `asc`: Sorts the results in ascending order: `A to Z` and `0 to 9`. + - `desc`: Sorts the results in descending order: `Z to A` and `9 to 0`. + required: false + style: form + explode: false + schema: + type: string + enum: + - asc + - desc + example: asc - $ref: '#/components/parameters/filterBy' - $ref: '#/components/parameters/current-page' - $ref: '#/components/parameters/page-size' @@ -12279,6 +12314,41 @@ paths: type: string enum: [hour, day] example: hour + - name: sortBy + in: query + description: | + Use this parameter to choose which field the API will use to sort the analytics data. + + These are the available fields to sort by: + + - `metricValue`: Sorts the results based on the **metric** you selected in your request. + - `emittedAt`: Sorts the results based on the **timestamp** of the event in ATOM date-time format. + style: form + explode: false + schema: + type: string + enum: + - metricValue + - emittedAt + example: metricValue + - name: sortOrder + in: query + description: | + Use this parameter to define the sort order of results. + + These are the available sort orders: + + - `asc`: Sorts the results in ascending order: `A to Z` and `0 to 9`. + - `desc`: Sorts the results in descending order: `Z to A` and `9 to 0`. + required: false + style: form + explode: false + schema: + type: string + enum: + - asc + - desc + example: asc - $ref: '#/components/parameters/filterBy' - $ref: '#/components/parameters/current-page' - $ref: '#/components/parameters/page-size' diff --git a/templates/java/libraries/okhttp-gson/ApiClient.mustache b/templates/java/libraries/okhttp-gson/ApiClient.mustache index 51381e26..9ee29a6f 100644 --- a/templates/java/libraries/okhttp-gson/ApiClient.mustache +++ b/templates/java/libraries/okhttp-gson/ApiClient.mustache @@ -55,6 +55,7 @@ import java.text.DateFormat; {{#java8}} import java.time.LocalDate; import java.time.OffsetDateTime; +import java.time.ZoneId; import java.time.format.DateTimeFormatter; {{/java8}} {{/threetenbp}}