diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 84698c9..029d2da 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -48,10 +48,6 @@ docs/PlayerThemeUpdatePayload.md docs/PlayerThemesApi.md docs/PlayerThemesListResponse.md docs/Quality.md -docs/RawStatisticsApi.md -docs/RawStatisticsListLiveStreamAnalyticsResponse.md -docs/RawStatisticsListPlayerSessionEventsResponse.md -docs/RawStatisticsListSessionsResponse.md docs/RefreshTokenPayload.md docs/RestreamsRequestObject.md docs/RestreamsResponseObject.md @@ -100,7 +96,6 @@ src/ApiVideo.Test/Api/CaptionsApiTests.cs src/ApiVideo.Test/Api/ChaptersApiTests.cs src/ApiVideo.Test/Api/LiveStreamsApiTests.cs src/ApiVideo.Test/Api/PlayerThemesApiTests.cs -src/ApiVideo.Test/Api/RawStatisticsApiTests.cs src/ApiVideo.Test/Api/UploadTokensApiTests.cs src/ApiVideo.Test/Api/VideosApiTests.cs src/ApiVideo.Test/Api/WatermarksApiTests.cs @@ -143,9 +138,6 @@ src/ApiVideo.Test/Model/PlayerThemeTests.cs src/ApiVideo.Test/Model/PlayerThemeUpdatePayloadTests.cs src/ApiVideo.Test/Model/PlayerThemesListResponseTests.cs src/ApiVideo.Test/Model/QualityTests.cs -src/ApiVideo.Test/Model/RawStatisticsListLiveStreamAnalyticsResponseTests.cs -src/ApiVideo.Test/Model/RawStatisticsListPlayerSessionEventsResponseTests.cs -src/ApiVideo.Test/Model/RawStatisticsListSessionsResponseTests.cs src/ApiVideo.Test/Model/RefreshTokenPayloadTests.cs src/ApiVideo.Test/Model/RestreamsRequestObjectTests.cs src/ApiVideo.Test/Model/RestreamsResponseObjectTests.cs @@ -187,7 +179,6 @@ src/ApiVideo/Api/CaptionsApi.cs src/ApiVideo/Api/ChaptersApi.cs src/ApiVideo/Api/LiveStreamsApi.cs src/ApiVideo/Api/PlayerThemesApi.cs -src/ApiVideo/Api/RawStatisticsApi.cs src/ApiVideo/Api/UploadTokensApi.cs src/ApiVideo/Api/VideosApi.cs src/ApiVideo/Api/WatermarksApi.cs @@ -242,9 +233,6 @@ src/ApiVideo/Model/PlayerThemeCreationPayload.cs src/ApiVideo/Model/PlayerThemeUpdatePayload.cs src/ApiVideo/Model/PlayerThemesListResponse.cs src/ApiVideo/Model/Quality.cs -src/ApiVideo/Model/RawStatisticsListLiveStreamAnalyticsResponse.cs -src/ApiVideo/Model/RawStatisticsListPlayerSessionEventsResponse.cs -src/ApiVideo/Model/RawStatisticsListSessionsResponse.cs src/ApiVideo/Model/RefreshTokenPayload.cs src/ApiVideo/Model/RestreamsRequestObject.cs src/ApiVideo/Model/RestreamsResponseObject.cs diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index 0fd006c..2fa376f 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -1887f11face54a0a043265ab98f1d56e2ac08c39bef0c30dbaa6fc9dfdefb3db \ No newline at end of file +b9d3d370b440bb917aed9a95747189f3a04e14c1a36cbf5ebcab2bd1b0b71487 \ No newline at end of file diff --git a/README.md b/README.md index c856a59..085d1d9 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ - [ChaptersApi](#chaptersapi) - [LiveStreamsApi](#livestreamsapi) - [PlayerThemesApi](#playerthemesapi) - - [RawStatisticsApi](#rawstatisticsapi) - [UploadTokensApi](#uploadtokensapi) - [VideosApi](#videosapi) - [WatermarksApi](#watermarksapi) @@ -245,24 +244,6 @@ Method | HTTP request | Description [**deleteLogo**](docs/PlayerThemesApi.md#deleteLogo) | **DELETE** /players/{playerId}/logo | Delete logo -### RawStatisticsApi - - -#### Retrieve an instance of RawStatisticsApi: -```java -ApiVideoClient apiVideoClient = new ApiVideoClient("YOUR_API_KEY"); -RawStatisticsApi rawStatistics = client.RawStatistics() -``` - -#### Endpoints - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listLiveStreamSessions**](docs/RawStatisticsApi.md#listLiveStreamSessions) | **GET** /analytics/live-streams/{liveStreamId} | List live stream player sessions -[**listSessionEvents**](docs/RawStatisticsApi.md#listSessionEvents) | **GET** /analytics/sessions/{sessionId}/events | List player session events -[**listVideoSessions**](docs/RawStatisticsApi.md#listVideoSessions) | **GET** /analytics/videos/{videoId} | List video player sessions - - ### UploadTokensApi @@ -384,9 +365,6 @@ Method | HTTP request | Description - [PlayerThemeUpdatePayload](docs/PlayerThemeUpdatePayload.md) - [PlayerThemesListResponse](docs/PlayerThemesListResponse.md) - [Quality](docs/Quality.md) - - [RawStatisticsListLiveStreamAnalyticsResponse](docs/RawStatisticsListLiveStreamAnalyticsResponse.md) - - [RawStatisticsListPlayerSessionEventsResponse](docs/RawStatisticsListPlayerSessionEventsResponse.md) - - [RawStatisticsListSessionsResponse](docs/RawStatisticsListSessionsResponse.md) - [RefreshTokenPayload](docs/RefreshTokenPayload.md) - [RestreamsRequestObject](docs/RestreamsRequestObject.md) - [RestreamsResponseObject](docs/RestreamsResponseObject.md) diff --git a/docs/RawStatisticsApi.md b/docs/RawStatisticsApi.md deleted file mode 100644 index 26b7454..0000000 --- a/docs/RawStatisticsApi.md +++ /dev/null @@ -1,228 +0,0 @@ -# ApiVideo.Api.RawStatisticsApi - -All URIs are relative to *https://ws.api.video* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listLiveStreamSessions**](RawStatisticsApi.md#getanalyticslivestreamslivestreamid) | **GET** /analytics/live-streams/{liveStreamId} | List live stream player sessions -[**listSessionEvents**](RawStatisticsApi.md#getanalyticssessionssessionidevents) | **GET** /analytics/sessions/{sessionId}/events | List player session events -[**listVideoSessions**](RawStatisticsApi.md#getanalyticsvideosvideoid) | **GET** /analytics/videos/{videoId} | List video player sessions - - - -# **listLiveStreamSessions** -> RawStatisticsListLiveStreamAnalyticsResponse listLiveStreamSessions (string liveStreamId, string period, int? currentPage = null, int? pageSize = null) - -List live stream player sessions - -### Example -```csharp -using System.Diagnostics; -using ApiVideo.Client; - -namespace Example -{ - public class listLiveStreamSessionsExample - { - public static void Main() - { - var basePath = ApiVideoClient.Client.Environment.SANDBOX; - var apiKey = "YOUR_API_KEY"; - - var apiInstance = new ApiVideoClient(apiKey,basePath); - - var liveStreamId = vi4k0jvEUuaTdRAEjQ4Jfrgz; // string | The unique identifier for the live stream you want to retrieve analytics for. - var period = 2019-01-01T00:00:00.000Z; // string | Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" - var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1) - var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25) - var apiRawStatisticsInstance = apiInstance.RawStatistics(); - try - { - // List live stream player sessions - RawStatisticsListLiveStreamAnalyticsResponse result = apiRawStatisticsInstance.listLiveStreamSessions(liveStreamId, period, currentPage, pageSize); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling RawStatisticsApi.listLiveStreamSessions: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **liveStreamId** | **string**| The unique identifier for the live stream you want to retrieve analytics for. | - **period** | **string**| Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" | - **currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1] - **pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25] - -### Return type - -[**RawStatisticsListLiveStreamAnalyticsResponse**](RawStatisticsListLiveStreamAnalyticsResponse.md) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **listSessionEvents** -> RawStatisticsListPlayerSessionEventsResponse listSessionEvents (string sessionId, int? currentPage = null, int? pageSize = null) - -List player session events - -Useful to track and measure video's engagement. - -### Example -```csharp -using System.Diagnostics; -using ApiVideo.Client; - -namespace Example -{ - public class listSessionEventsExample - { - public static void Main() - { - var basePath = ApiVideoClient.Client.Environment.SANDBOX; - var apiKey = "YOUR_API_KEY"; - - var apiInstance = new ApiVideoClient(apiKey,basePath); - - var sessionId = psEmFwGQUAXR2lFHj5nDOpy; // string | A unique identifier you can use to reference and track a session with. - var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1) - var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25) - var apiRawStatisticsInstance = apiInstance.RawStatistics(); - try - { - // List player session events - RawStatisticsListPlayerSessionEventsResponse result = apiRawStatisticsInstance.listSessionEvents(sessionId, currentPage, pageSize); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling RawStatisticsApi.listSessionEvents: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sessionId** | **string**| A unique identifier you can use to reference and track a session with. | - **currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1] - **pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25] - -### Return type - -[**RawStatisticsListPlayerSessionEventsResponse**](RawStatisticsListPlayerSessionEventsResponse.md) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **listVideoSessions** -> RawStatisticsListSessionsResponse listVideoSessions (string videoId, string period, Dictionary metadata = null, int? currentPage = null, int? pageSize = null) - -List video player sessions - -Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics). - -### Example -```csharp -using System.Diagnostics; -using ApiVideo.Client; - -namespace Example -{ - public class listVideoSessionsExample - { - public static void Main() - { - var basePath = ApiVideoClient.Client.Environment.SANDBOX; - var apiKey = "YOUR_API_KEY"; - - var apiInstance = new ApiVideoClient(apiKey,basePath); - - var videoId = vi4k0jvEUuaTdRAEjQ4Prklg; // string | The unique identifier for the video you want to retrieve session information for. - var period = period_example; // string | Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 - var metadata = new Dictionary(); // Dictionary | Metadata and [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) filter. Send an array of key value pairs you want to filter sessios with. (optional) - var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1) - var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25) - var apiRawStatisticsInstance = apiInstance.RawStatistics(); - try - { - // List video player sessions - RawStatisticsListSessionsResponse result = apiRawStatisticsInstance.listVideoSessions(videoId, period, metadata, currentPage, pageSize); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling RawStatisticsApi.listVideoSessions: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **videoId** | **string**| The unique identifier for the video you want to retrieve session information for. | - **period** | **string**| Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 | - **metadata** | [**Dictionary<string, string>**](string.md)| Metadata and [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) filter. Send an array of key value pairs you want to filter sessios with. | [optional] - **currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1] - **pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25] - -### Return type - -[**RawStatisticsListSessionsResponse**](RawStatisticsListSessionsResponse.md) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success | - | -| **404** | Not Found | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/RawStatisticsListLiveStreamAnalyticsResponse.md b/docs/RawStatisticsListLiveStreamAnalyticsResponse.md deleted file mode 100644 index 48c1db6..0000000 --- a/docs/RawStatisticsListLiveStreamAnalyticsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiVideo.Model.RawStatisticsListLiveStreamAnalyticsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<LiveStreamSession>**](LiveStreamSession.md) | | -**Pagination** | [**Pagination**](Pagination.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RawStatisticsListPlayerSessionEventsResponse.md b/docs/RawStatisticsListPlayerSessionEventsResponse.md deleted file mode 100644 index 79d7132..0000000 --- a/docs/RawStatisticsListPlayerSessionEventsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiVideo.Model.RawStatisticsListPlayerSessionEventsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<PlayerSessionEvent>**](PlayerSessionEvent.md) | | -**Pagination** | [**Pagination**](Pagination.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/RawStatisticsListSessionsResponse.md b/docs/RawStatisticsListSessionsResponse.md deleted file mode 100644 index 1b940c4..0000000 --- a/docs/RawStatisticsListSessionsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiVideo.Model.RawStatisticsListSessionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<VideoSession>**](VideoSession.md) | | -**Pagination** | [**Pagination**](Pagination.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/documentation.md b/documentation.md index d10d4bf..f058750 100644 --- a/documentation.md +++ b/documentation.md @@ -215,24 +215,6 @@ Method | HTTP request | Description [**deleteLogo**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/PlayerThemesApi.md#deleteLogo) | **DELETE** /players/{playerId}/logo | Delete logo -### RawStatisticsApi - - -#### Retrieve an instance of RawStatisticsApi: -```java -ApiVideoClient apiVideoClient = new ApiVideoClient("YOUR_API_KEY"); -RawStatisticsApi rawStatistics = client.RawStatistics() -``` - -#### Endpoints - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listLiveStreamSessions**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsApi.md#listLiveStreamSessions) | **GET** /analytics/live-streams/{liveStreamId} | List live stream player sessions -[**listSessionEvents**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsApi.md#listSessionEvents) | **GET** /analytics/sessions/{sessionId}/events | List player session events -[**listVideoSessions**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsApi.md#listVideoSessions) | **GET** /analytics/videos/{videoId} | List video player sessions - - ### UploadTokensApi @@ -354,9 +336,6 @@ Method | HTTP request | Description - [PlayerThemeUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/PlayerThemeUpdatePayload.md) - [PlayerThemesListResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/PlayerThemesListResponse.md) - [Quality](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Quality.md) - - [RawStatisticsListLiveStreamAnalyticsResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsListLiveStreamAnalyticsResponse.md) - - [RawStatisticsListPlayerSessionEventsResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsListPlayerSessionEventsResponse.md) - - [RawStatisticsListSessionsResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RawStatisticsListSessionsResponse.md) - [RefreshTokenPayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RefreshTokenPayload.md) - [RestreamsRequestObject](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RestreamsRequestObject.md) - [RestreamsResponseObject](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/RestreamsResponseObject.md) diff --git a/src/Api/RawStatisticsApi.cs b/src/Api/RawStatisticsApi.cs deleted file mode 100644 index e61f86a..0000000 --- a/src/Api/RawStatisticsApi.cs +++ /dev/null @@ -1,527 +0,0 @@ -/* - * api.video - * - * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. - * - * The version of the OpenAPI document: 1 - * - * Generated by: https://github.com/openapitools/openapi-generator.git - */ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Threading; -using System.IO; -using ApiVideo.Upload; -using RestSharp; -using ApiVideo.Client; -using ApiVideo.Model; - -namespace ApiVideo.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public class RawStatisticsApi - { - /// - /// Api Client Instance - /// - public ApiClient ApiClient {get; set;} - - /// - /// Initializes a new instance of the class. - /// - /// - public RawStatisticsApi(ApiClient apiClient) - { - this.ApiClient = apiClient; - } - - /// - /// List live stream player sessions - /// - /// Thrown when fails to make API call - /// The unique identifier for the live stream you want to retrieve analytics for. -/// Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// RawStatisticsListLiveStreamAnalyticsResponse - public RawStatisticsListLiveStreamAnalyticsResponse listLiveStreamSessions(string liveStreamId, string period, int? currentPage = default, int? pageSize = default) - { - ApiResponse localVarResponse = listLiveStreamSessionsWithHttpInfo(liveStreamId, period, currentPage, pageSize); - return localVarResponse.Data; - } - - /// - /// List live stream player sessions - /// - /// Thrown when fails to make API call - /// The unique identifier for the live stream you want to retrieve analytics for. -/// Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// ApiResponse of RawStatisticsListLiveStreamAnalyticsResponse - public ApiResponse listLiveStreamSessionsWithHttpInfo(string liveStreamId, string period, int? currentPage = default, int? pageSize = default) - { - - - - - // verify the required parameter 'liveStreamId' is set - if (liveStreamId == null) - throw new ApiException(400, "Missing required parameter 'liveStreamId' when calling RawStatisticsApi->listLiveStreamSessions"); - // verify the required parameter 'period' is set - if (period == null) - throw new ApiException(400, "Missing required parameter 'period' when calling RawStatisticsApi->listLiveStreamSessions"); - - - var localVarPath = "/analytics/live-streams/{liveStreamId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - string[] localVarContentTypes = new string[] { - }; - string localVarContentType = ApiClient.SelectHeaderContentType(localVarContentTypes); - localVarHeaderParams.Add("Content-Type", localVarContentType); - // to determine the Accept header - string[] localVarHttpHeaderAccepts = new string[] { - "application/json" - }; - string localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (liveStreamId != null) localVarPathParams.Add("liveStreamId", this.ApiClient.ParameterToString(liveStreamId)); // path parameter - if (period != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "period", period)); // query parameter - if (currentPage != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "currentPage", currentPage)); // query parameter - if (pageSize != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter - - - - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (RawStatisticsListLiveStreamAnalyticsResponse) this.ApiClient.Deserialize(localVarResponse, typeof(RawStatisticsListLiveStreamAnalyticsResponse))); - - } - - - /// - /// - /// - /// The unique identifier for the live stream you want to retrieve analytics for. (required) - /// Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" (required) - /// APIlistLiveStreamSessionsRequest - public APIlistLiveStreamSessionsRequest listLiveStreamSessions(string liveStreamId, string period) { - return new APIlistLiveStreamSessionsRequest(this,liveStreamId, period); - } - - /// - /// Request listLiveStreamSessions class to get paginated list of items - /// - public class APIlistLiveStreamSessionsRequest { - private string liveStreamId; - private string period; - private int? currentPage; - private int? pageSize; - - private RawStatisticsApi currentApiInstance; - - /// - /// Class constructor with api instance - /// - /// Instance of the current api - /// The unique identifier for the live stream you want to retrieve analytics for. (required) - /// Period must have one of the following formats: - For a day : \"2018-01-01\", - For a week: \"2018-W01\", - For a month: \"2018-01\" - For a year: \"2018\" For a range period: - Date range: \"2018-01-01/2018-01-15\" (required) - public APIlistLiveStreamSessionsRequest(RawStatisticsApi instance, string liveStreamId, string period) { - this.liveStreamId = liveStreamId; - this.period = period; - this.currentApiInstance = instance; - } - - /// - /// Set currentPage - /// - /// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) - /// APIlistLiveStreamSessionsRequest - public APIlistLiveStreamSessionsRequest CurrentPage(int? currentPage) { - this.currentPage = currentPage; - return this; - } - - /// - /// Set pageSize - /// - /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - /// APIlistLiveStreamSessionsRequest - public APIlistLiveStreamSessionsRequest PageSize(int? pageSize) { - this.pageSize = pageSize; - return this; - } - - - - /// - /// Execute listLiveStreamSessions request - /// - /// RawStatisticsListLiveStreamAnalyticsResponse - public Page execute(){ - ApiResponse localVarResp = this.currentApiInstance.listLiveStreamSessionsWithHttpInfo(liveStreamId, period, currentPage, pageSize); - return new Page(localVarResp.Data.data, localVarResp.Data.pagination, () => { - try { - return copy().CurrentPage((currentPage == null ? 1 : currentPage) + 1).execute(); - } catch (ApiException e) { - throw new Exception(e.Message); - } - }); - } - - private APIlistLiveStreamSessionsRequest copy() { - APIlistLiveStreamSessionsRequest copy = new APIlistLiveStreamSessionsRequest( this.currentApiInstance, liveStreamId, period); - copy.CurrentPage(currentPage); - copy.PageSize(pageSize); - return copy; - } - } - /// - /// List player session events Useful to track and measure video's engagement. - /// - /// Thrown when fails to make API call - /// A unique identifier you can use to reference and track a session with. -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// RawStatisticsListPlayerSessionEventsResponse - public RawStatisticsListPlayerSessionEventsResponse listSessionEvents(string sessionId, int? currentPage = default, int? pageSize = default) - { - ApiResponse localVarResponse = listSessionEventsWithHttpInfo(sessionId, currentPage, pageSize); - return localVarResponse.Data; - } - - /// - /// List player session events Useful to track and measure video's engagement. - /// - /// Thrown when fails to make API call - /// A unique identifier you can use to reference and track a session with. -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// ApiResponse of RawStatisticsListPlayerSessionEventsResponse - public ApiResponse listSessionEventsWithHttpInfo(string sessionId, int? currentPage = default, int? pageSize = default) - { - - - - // verify the required parameter 'sessionId' is set - if (sessionId == null) - throw new ApiException(400, "Missing required parameter 'sessionId' when calling RawStatisticsApi->listSessionEvents"); - - - var localVarPath = "/analytics/sessions/{sessionId}/events"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - string[] localVarContentTypes = new string[] { - }; - string localVarContentType = ApiClient.SelectHeaderContentType(localVarContentTypes); - localVarHeaderParams.Add("Content-Type", localVarContentType); - // to determine the Accept header - string[] localVarHttpHeaderAccepts = new string[] { - "application/json" - }; - string localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (sessionId != null) localVarPathParams.Add("sessionId", this.ApiClient.ParameterToString(sessionId)); // path parameter - if (currentPage != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "currentPage", currentPage)); // query parameter - if (pageSize != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter - - - - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (RawStatisticsListPlayerSessionEventsResponse) this.ApiClient.Deserialize(localVarResponse, typeof(RawStatisticsListPlayerSessionEventsResponse))); - - } - - - /// - /// Useful to track and measure video's engagement. - /// - /// A unique identifier you can use to reference and track a session with. (required) - /// APIlistSessionEventsRequest - public APIlistSessionEventsRequest listSessionEvents(string sessionId) { - return new APIlistSessionEventsRequest(this,sessionId); - } - - /// - /// Request listSessionEvents class to get paginated list of items - /// - public class APIlistSessionEventsRequest { - private string sessionId; - private int? currentPage; - private int? pageSize; - - private RawStatisticsApi currentApiInstance; - - /// - /// Class constructor with api instance - /// - /// Instance of the current api - /// A unique identifier you can use to reference and track a session with. (required) - public APIlistSessionEventsRequest(RawStatisticsApi instance, string sessionId) { - this.sessionId = sessionId; - this.currentApiInstance = instance; - } - - /// - /// Set currentPage - /// - /// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) - /// APIlistSessionEventsRequest - public APIlistSessionEventsRequest CurrentPage(int? currentPage) { - this.currentPage = currentPage; - return this; - } - - /// - /// Set pageSize - /// - /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - /// APIlistSessionEventsRequest - public APIlistSessionEventsRequest PageSize(int? pageSize) { - this.pageSize = pageSize; - return this; - } - - - - /// - /// Execute listSessionEvents request - /// - /// RawStatisticsListPlayerSessionEventsResponse - public Page execute(){ - ApiResponse localVarResp = this.currentApiInstance.listSessionEventsWithHttpInfo(sessionId, currentPage, pageSize); - return new Page(localVarResp.Data.data, localVarResp.Data.pagination, () => { - try { - return copy().CurrentPage((currentPage == null ? 1 : currentPage) + 1).execute(); - } catch (ApiException e) { - throw new Exception(e.Message); - } - }); - } - - private APIlistSessionEventsRequest copy() { - APIlistSessionEventsRequest copy = new APIlistSessionEventsRequest( this.currentApiInstance, sessionId); - copy.CurrentPage(currentPage); - copy.PageSize(pageSize); - return copy; - } - } - /// - /// List video player sessions Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics). - /// - /// Thrown when fails to make API call - /// The unique identifier for the video you want to retrieve session information for. -/// Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 -/// Metadata and [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) filter. Send an array of key value pairs you want to filter sessios with. (optional) -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// RawStatisticsListSessionsResponse - public RawStatisticsListSessionsResponse listVideoSessions(string videoId, string period, Dictionary metadata = default, int? currentPage = default, int? pageSize = default) - { - ApiResponse localVarResponse = listVideoSessionsWithHttpInfo(videoId, period, metadata, currentPage, pageSize); - return localVarResponse.Data; - } - - /// - /// List video player sessions Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics). - /// - /// Thrown when fails to make API call - /// The unique identifier for the video you want to retrieve session information for. -/// Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 -/// Metadata and [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) filter. Send an array of key value pairs you want to filter sessios with. (optional) -/// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) -/// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - - /// ApiResponse of RawStatisticsListSessionsResponse - public ApiResponse listVideoSessionsWithHttpInfo(string videoId, string period, Dictionary metadata = default, int? currentPage = default, int? pageSize = default) - { - - - - - - // verify the required parameter 'videoId' is set - if (videoId == null) - throw new ApiException(400, "Missing required parameter 'videoId' when calling RawStatisticsApi->listVideoSessions"); - // verify the required parameter 'period' is set - if (period == null) - throw new ApiException(400, "Missing required parameter 'period' when calling RawStatisticsApi->listVideoSessions"); - - - var localVarPath = "/analytics/videos/{videoId}"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - string[] localVarContentTypes = new string[] { - }; - string localVarContentType = ApiClient.SelectHeaderContentType(localVarContentTypes); - localVarHeaderParams.Add("Content-Type", localVarContentType); - // to determine the Accept header - string[] localVarHttpHeaderAccepts = new string[] { - "application/json" - }; - string localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (videoId != null) localVarPathParams.Add("videoId", this.ApiClient.ParameterToString(videoId)); // path parameter - if (period != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "period", period)); // query parameter - if (metadata != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "metadata", metadata)); // query parameter - if (currentPage != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "currentPage", currentPage)); // query parameter - if (pageSize != null) localVarQueryParams.AddRange(this.ApiClient.ParameterToKeyValuePairs("", "pageSize", pageSize)); // query parameter - - - - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (RawStatisticsListSessionsResponse) this.ApiClient.Deserialize(localVarResponse, typeof(RawStatisticsListSessionsResponse))); - - } - - - /// - /// Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics). - /// - /// The unique identifier for the video you want to retrieve session information for. (required) - /// Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 (required) - /// APIlistVideoSessionsRequest - public APIlistVideoSessionsRequest listVideoSessions(string videoId, string period) { - return new APIlistVideoSessionsRequest(this,videoId, period); - } - - /// - /// Request listVideoSessions class to get paginated list of items - /// - public class APIlistVideoSessionsRequest { - private string videoId; - private string period; - private Dictionary metadata; - private int? currentPage; - private int? pageSize; - - private RawStatisticsApi currentApiInstance; - - /// - /// Class constructor with api instance - /// - /// Instance of the current api - /// The unique identifier for the video you want to retrieve session information for. (required) - /// Period must have one of the following formats: - For a day : 2018-01-01, - For a week: 2018-W01, - For a month: 2018-01 - For a year: 2018 For a range period: - Date range: 2018-01-01/2018-01-15 (required) - public APIlistVideoSessionsRequest(RawStatisticsApi instance, string videoId, string period) { - this.videoId = videoId; - this.period = period; - this.currentApiInstance = instance; - } - - /// - /// Set metadata - /// - /// Metadata and [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata) filter. Send an array of key value pairs you want to filter sessios with. (optional) - /// APIlistVideoSessionsRequest - public APIlistVideoSessionsRequest Metadata(Dictionary metadata) { - this.metadata = metadata; - return this; - } - - /// - /// Set currentPage - /// - /// Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1) - /// APIlistVideoSessionsRequest - public APIlistVideoSessionsRequest CurrentPage(int? currentPage) { - this.currentPage = currentPage; - return this; - } - - /// - /// Set pageSize - /// - /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) - /// APIlistVideoSessionsRequest - public APIlistVideoSessionsRequest PageSize(int? pageSize) { - this.pageSize = pageSize; - return this; - } - - - - /// - /// Execute listVideoSessions request - /// - /// RawStatisticsListSessionsResponse - public Page execute(){ - ApiResponse localVarResp = this.currentApiInstance.listVideoSessionsWithHttpInfo(videoId, period, metadata, currentPage, pageSize); - return new Page(localVarResp.Data.data, localVarResp.Data.pagination, () => { - try { - return copy().CurrentPage((currentPage == null ? 1 : currentPage) + 1).execute(); - } catch (ApiException e) { - throw new Exception(e.Message); - } - }); - } - - private APIlistVideoSessionsRequest copy() { - APIlistVideoSessionsRequest copy = new APIlistVideoSessionsRequest( this.currentApiInstance, videoId, period); - copy.Metadata(metadata); - copy.CurrentPage(currentPage); - copy.PageSize(pageSize); - return copy; - } - } - - } - -} diff --git a/src/ApiVideo.cs b/src/ApiVideo.cs index dc1285c..3715f16 100644 --- a/src/ApiVideo.cs +++ b/src/ApiVideo.cs @@ -13,7 +13,6 @@ public class ApiVideoClient { private readonly ChaptersApi chapters; private readonly LiveStreamsApi liveStreams; private readonly PlayerThemesApi playerThemes; - private readonly RawStatisticsApi rawStatistics; private readonly UploadTokensApi uploadTokens; private readonly VideosApi videos; private readonly WatermarksApi watermarks; @@ -70,7 +69,6 @@ public ApiVideoClient(RestClient client) : this(new ApiClient(client)) this.chapters = new ChaptersApi(this.apiClient); this.liveStreams = new LiveStreamsApi(this.apiClient); this.playerThemes = new PlayerThemesApi(this.apiClient); - this.rawStatistics = new RawStatisticsApi(this.apiClient); this.uploadTokens = new UploadTokensApi(this.apiClient); this.videos = new VideosApi(this.apiClient); this.watermarks = new WatermarksApi(this.apiClient); @@ -118,14 +116,6 @@ public ApiVideoClient(RestClient client) : this(new ApiClient(client)) return this.playerThemes; } - /// - /// Get an RawStatisticsApi instance - /// - /// RawStatisticsApi - public RawStatisticsApi RawStatistics() { - return this.rawStatistics; - } - /// /// Get an UploadTokensApi instance /// diff --git a/src/Model/RawStatisticsListLiveStreamAnalyticsResponse.cs b/src/Model/RawStatisticsListLiveStreamAnalyticsResponse.cs deleted file mode 100644 index cbfeb2d..0000000 --- a/src/Model/RawStatisticsListLiveStreamAnalyticsResponse.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class RawStatisticsListLiveStreamAnalyticsResponse { - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public List data { get; set; } - /// - /// Gets or Sets Pagination - /// - [DataMember(Name="pagination", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "pagination")] - public Pagination pagination { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class RawStatisticsListLiveStreamAnalyticsResponse {\n"); - sb.Append(" Data: ").Append(data).Append("\n"); - sb.Append(" Pagination: ").Append(pagination).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/RawStatisticsListPlayerSessionEventsResponse.cs b/src/Model/RawStatisticsListPlayerSessionEventsResponse.cs deleted file mode 100644 index f50a619..0000000 --- a/src/Model/RawStatisticsListPlayerSessionEventsResponse.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class RawStatisticsListPlayerSessionEventsResponse { - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public List data { get; set; } - /// - /// Gets or Sets Pagination - /// - [DataMember(Name="pagination", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "pagination")] - public Pagination pagination { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class RawStatisticsListPlayerSessionEventsResponse {\n"); - sb.Append(" Data: ").Append(data).Append("\n"); - sb.Append(" Pagination: ").Append(pagination).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/RawStatisticsListSessionsResponse.cs b/src/Model/RawStatisticsListSessionsResponse.cs deleted file mode 100644 index af1404c..0000000 --- a/src/Model/RawStatisticsListSessionsResponse.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class RawStatisticsListSessionsResponse { - /// - /// Gets or Sets Data - /// - [DataMember(Name="data", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "data")] - public List data { get; set; } - /// - /// Gets or Sets Pagination - /// - [DataMember(Name="pagination", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "pagination")] - public Pagination pagination { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class RawStatisticsListSessionsResponse {\n"); - sb.Append(" Data: ").Append(data).Append("\n"); - sb.Append(" Pagination: ").Append(pagination).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/200.json b/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/200.json deleted file mode 100644 index 140bfd1..0000000 --- a/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/200.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "data" : [ { - "session" : { - "sessionId" : "ps4zRWVOv2If2vzKJLMr3jQo", - "loadedAt" : "2018-09-11T13:04:37.890Z", - "endedAt" : "2018-09-11T14:47:22.186Z" - }, - "location" : { - "country" : "France", - "city" : "Paris" - }, - "referrer" : { - "url" : "unknown", - "medium" : "unknown", - "source" : "unknown", - "searchTerm" : "unknown" - }, - "device" : { - "type" : "desktop", - "vendor" : "unknown", - "model" : "unknown" - }, - "os" : { - "name" : "unknown", - "shortname" : "unknown", - "version" : "unknown" - }, - "client" : { - "type" : "browser", - "name" : "Firefox", - "version" : "61.0" - } - } ], - "pagination" : { - "currentPage" : 1, - "currentPageItems" : 1, - "pageSize" : 25, - "pagesTotal" : 1, - "itemsTotal" : 1, - "links" : [ { - "rel" : "self", - "uri" : "/analytics/sessions/ps4zRWVOv2If2vzKJLMr3jQo?currentPage=1&pageSize=25" - }, { - "rel" : "first", - "uri" : "/analytics/sessions/ps4zRWVOv2If2vzKJLMr3jQo?currentPage=1&pageSize=25" - }, { - "rel" : "last", - "uri" : "/analytics/sessions/ps4zRWVOv2If2vzKJLMr3jQo?currentPage=1&pageSize=25" - } ] - } -} \ No newline at end of file diff --git a/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/404.json b/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/404.json deleted file mode 100644 index 9efa63b..0000000 --- a/tests/resources/payloads/rawstatistics/listLiveStreamSessions/responses/404.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type" : "https://docs.api.video/docs/resourcenot_found", - "title" : "The requested resource was not found.", - "name" : "liveStreamId", - "status" : 404 -} \ No newline at end of file diff --git a/tests/resources/payloads/rawstatistics/listSessionEvents/responses/200.json b/tests/resources/payloads/rawstatistics/listSessionEvents/responses/200.json deleted file mode 100644 index e444836..0000000 --- a/tests/resources/payloads/rawstatistics/listSessionEvents/responses/200.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "data" : [ { - "type" : "ready", - "emittedAt" : "2020-09-15T09:47:42.000Z", - "at" : 0 - }, { - "type" : "play", - "emittedAt" : "2020-09-15T21:35:57.000Z", - "at" : 0 - }, { - "type" : "pause", - "emittedAt" : "2020-09-15T21:36:05.000Z", - "at" : 7 - }, { - "type" : "resume", - "emittedAt" : "2020-09-15T21:36:19.000Z", - "at" : 21 - }, { - "type" : "seek.forward", - "emittedAt" : "2020-09-15T21:36:19.000Z", - "from" : 7, - "to" : 21 - }, { - "type" : "end", - "emittedAt" : "2020-09-15T21:36:28.000Z", - "at" : 30 - }, { - "type" : "play", - "emittedAt" : "2020-09-15T21:36:29.000Z", - "at" : 0 - }, { - "type" : "seek.backward", - "emittedAt" : "2020-09-15T21:36:29.000Z", - "from" : 30, - "to" : 0 - }, { - "type" : "pause", - "emittedAt" : "2020-09-15T21:36:29.000Z", - "at" : 21 - }, { - "type" : "resume", - "emittedAt" : "2020-09-15T21:36:30.000Z", - "at" : 21 - }, { - "type" : "seek.forward", - "emittedAt" : "2020-09-15T21:36:30.000Z", - "from" : 0, - "to" : 21 - }, { - "type" : "pause", - "emittedAt" : "2020-09-15T21:36:33.000Z", - "at" : 20 - }, { - "type" : "resume", - "emittedAt" : "2020-09-15T21:36:33.000Z", - "at" : 20 - }, { - "type" : "seek.backward", - "emittedAt" : "2020-09-15T21:36:33.000Z", - "from" : 24, - "to" : 20 - }, { - "type" : "pause", - "emittedAt" : "2020-09-15T21:36:39.000Z", - "at" : 17 - }, { - "type" : "resume", - "emittedAt" : "2020-09-15T21:36:39.000Z", - "at" : 17 - }, { - "type" : "seek.forward", - "emittedAt" : "2020-09-15T21:36:39.000Z", - "from" : 17, - "to" : 17 - }, { - "type" : "pause", - "emittedAt" : "2020-09-15T21:36:41.000Z", - "at" : 19 - }, { - "type" : "ready", - "emittedAt" : "2020-09-17T09:20:47.000Z", - "at" : 0 - }, { - "type" : "ready", - "emittedAt" : "2020-09-17T09:41:01.000Z", - "at" : 0 - }, { - "type" : "ready", - "emittedAt" : "2020-09-17T09:41:08.000Z", - "at" : 0 - }, { - "type" : "play", - "emittedAt" : "2020-09-17T09:41:10.000Z", - "at" : 0 - }, { - "type" : "pause", - "emittedAt" : "2020-09-17T09:41:12.000Z", - "at" : 1 - }, { - "type" : "resume", - "emittedAt" : "2020-09-17T09:41:13.000Z", - "at" : 1 - }, { - "type" : "pause", - "emittedAt" : "2020-09-17T09:41:15.000Z", - "at" : 3 - } ], - "pagination" : { - "currentPage" : 1, - "currentPageItems" : 25, - "pageSize" : 25, - "pagesTotal" : 2, - "itemsTotal" : 30, - "links" : [ { - "rel" : "self", - "uri" : "/analytics/sessions/ps5ltuhfsTOeh6bP03Tq5OWc/events?currentPage=1&pageSize=25" - }, { - "rel" : "first", - "uri" : "/analytics/sessions/ps5ltuhfsTOeh6bP03Tq5OWc/events?currentPage=1&pageSize=25" - }, { - "rel" : "next", - "uri" : "/analytics/sessions/ps5ltuhfsTOeh6bP03Tq5OWc/events?currentPage=2&pageSize=25" - }, { - "rel" : "last", - "uri" : "/analytics/sessions/ps5ltuhfsTOeh6bP03Tq5OWc/events?currentPage=2&pageSize=25" - } ] - } -} \ No newline at end of file diff --git a/tests/resources/payloads/rawstatistics/listSessionEvents/responses/404.json b/tests/resources/payloads/rawstatistics/listSessionEvents/responses/404.json deleted file mode 100644 index 69b4332..0000000 --- a/tests/resources/payloads/rawstatistics/listSessionEvents/responses/404.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type" : "https://docs.api.video/docs/resourcenot_found", - "title" : "The requested resource was not found.", - "name" : "videoId", - "status" : 404 -} \ No newline at end of file diff --git a/tests/resources/payloads/rawstatistics/listVideoSessions/responses/200.json b/tests/resources/payloads/rawstatistics/listVideoSessions/responses/200.json deleted file mode 100644 index 9c2c683..0000000 --- a/tests/resources/payloads/rawstatistics/listVideoSessions/responses/200.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "data" : [ { - "session" : { - "sessionId" : "psEmFwGQUAXR2lFHj5nDOpy", - "loadedAt" : "2019-06-24T11:45:01.109Z", - "endedAt" : "2019-06-24T11:49:19.243Z" - }, - "location" : { - "country" : "France", - "city" : "Paris" - }, - "referrer" : { - "url" : "https://api.video", - "medium" : "organic", - "source" : "https://google.com", - "searchTerm" : "video encoding hosting and delivery" - }, - "device" : { - "type" : "desktop", - "vendor" : "Dell", - "model" : "unknown" - }, - "os" : { - "name" : "Microsoft Windows", - "shortname" : "W10", - "version" : "Windows10" - }, - "client" : { - "type" : "browser", - "name" : "Firefox", - "version" : "67.0" - } - } ], - "pagination" : { - "currentPage" : 1, - "currentPageItems" : 1, - "pageSize" : 25, - "pagesTotal" : 1, - "itemsTotal" : 1, - "links" : [ { - "rel" : "self", - "uri" : "/analytics/sessions/psEmFwGQUAXR2lFHj5nDOpy?currentPage=1&pageSize=25" - }, { - "rel" : "first", - "uri" : "/analytics/sessions/psEmFwGQUAXR2lFHj5nDOpy?currentPage=1&pageSize=25" - }, { - "rel" : "last", - "uri" : "/analytics/sessions/psEmFwGQUAXR2lFHj5nDOpy?currentPage=1&pageSize=25" - } ] - } -} \ No newline at end of file diff --git a/tests/resources/payloads/rawstatistics/listVideoSessions/responses/404.json b/tests/resources/payloads/rawstatistics/listVideoSessions/responses/404.json deleted file mode 100644 index 69b4332..0000000 --- a/tests/resources/payloads/rawstatistics/listVideoSessions/responses/404.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type" : "https://docs.api.video/docs/resourcenot_found", - "title" : "The requested resource was not found.", - "name" : "videoId", - "status" : 404 -} \ No newline at end of file