diff --git a/README.md b/README.md index 19392d7..ec1147f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ - [ChaptersApi](#chaptersapi) - [LiveStreamsApi](#livestreamsapi) - [PlayerThemesApi](#playerthemesapi) - - [RawStatisticsApi](#rawstatisticsapi) - [UploadTokensApi](#uploadtokensapi) - [VideosApi](#videosapi) - [WatermarksApi](#watermarksapi) @@ -259,26 +258,6 @@ Method | HTTP request | Description [**deleteLogo**](docs/PlayerThemesApi.md#deleteLogo) | **DELETE** /players/{playerId}/logo | Delete logo -### RawStatisticsApi - - -#### Retrieve an instance of RawStatisticsApi: -```kotlin -val client = ApiVideoClient("YOUR_API_KEY") -val 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 @@ -408,9 +387,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/api/openapi.yaml b/api/openapi.yaml index 78b96ff..571c4b8 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3519,7 +3519,6 @@ paths: streamKey: cc1b4df0-d1c5-4064-a8f9-9f0368385188 name: Live Stream From the browser public: true - record: true broadcasting: false assets: iframe: ") @@ -142,7 +142,7 @@ public void responseWithStatus200Test() throws ApiException { new LiveStream().updatedAt(OffsetDateTime.parse("2020-07-29T10:45:35Z")) .createdAt(OffsetDateTime.parse("2020-07-29T10:45:35Z")) .liveStreamId("li4pqNqGUkhKfWcBGpZVLRY5").streamKey("cc1b4df0-d1c5-4064-a8f9-9f0368385135") - .name("Live From New York").record(true).broadcasting(false)._public(true) + .name("Live From New York").broadcasting(false)._public(true) .assets(new LiveStreamAssets().iframe( "") .player(URI.create("https://embed.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5")) @@ -186,7 +186,6 @@ public void responseWithStatus200Test() throws ApiException { assertThat(res.getLiveStreamId()).isEqualTo("li4pqNqGUkhKfWcBGpZVLRY5"); assertThat(res.getStreamKey()).isEqualTo("cc1b4df0-d1c5-4064-a8f9-9f0368385135"); assertThat(res.getName()).isEqualTo("Live From New York"); - assertThat(res.getRecord()).isEqualTo(true); assertThat(res.getBroadcasting()).isEqualTo(false); assertThat(res.getAssets()).isEqualTo(new LiveStreamAssets().iframe( "") @@ -226,7 +225,6 @@ public void responseWithStatus200Test() throws ApiException { assertThat(res.getLiveStreamId()).isEqualTo("li4pqNqGUkhKfWcBGpZVLRY5"); assertThat(res.getStreamKey()).isEqualTo("cc1b4df0-d1c5-4064-a8f9-9f0368385135"); assertThat(res.getName()).isEqualTo("Live From New York"); - assertThat(res.getRecord()).isEqualTo(true); assertThat(res.getBroadcasting()).isEqualTo(false); assertThat(res.getAssets()).isEqualTo(new LiveStreamAssets().iframe( "") @@ -278,7 +276,6 @@ public void responseWithStatus200Test() throws ApiException { assertThat(res.getLiveStreamId()).isEqualTo("li4pqNqGUkhKfWcBGpZVLRY5"); assertThat(res.getStreamKey()).isEqualTo("cc1b4df0-d1c5-4064-a8f9-9f0368385135"); assertThat(res.getName()).isEqualTo("Live From New York"); - assertThat(res.getRecord()).isEqualTo(true); assertThat(res.getBroadcasting()).isEqualTo(false); assertThat(res.getAssets()).isEqualTo(new LiveStreamAssets().iframe( "") diff --git a/src/test/java/video/api/client/api/clients/RawStatisticsApiTest.java b/src/test/java/video/api/client/api/clients/RawStatisticsApiTest.java deleted file mode 100644 index ba57145..0000000 --- a/src/test/java/video/api/client/api/clients/RawStatisticsApiTest.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * api.video Java API client - * 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 - * Contact: ecosystem-team@api.video - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - -package video.api.client.api.clients; - -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Nested; -import org.junit.jupiter.api.Test; -import video.api.client.api.ApiException; -import video.api.client.api.models.*; - -import org.threeten.bp.OffsetDateTime; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatNoException; -import static org.assertj.core.api.Assertions.assertThatThrownBy; - -/** - * API tests for RawStatisticsApi - */ -@DisplayName("RawStatisticsApi") -public class RawStatisticsApiTest extends AbstractApiTest { - - private final RawStatisticsApi api = apiClientMock.rawStatistics(); - - @Nested - @DisplayName("listLiveStreamSessions") - class listLiveStreamSessions { - private static final String PAYLOADS_PATH = "/payloads/rawstatistics/listLiveStreamSessions/"; - - @Test - @DisplayName("required parameters") - public void requiredParametersTest() { - answerOnAnyRequest(201, "{}"); - - assertThatThrownBy(() -> api.listLiveStreamSessions(null, "2022-01").execute()) - .isInstanceOf(ApiException.class) - .hasMessage("Missing the required parameter 'liveStreamId' when calling listLiveStreamSessions"); - - assertThatNoException() - .isThrownBy(() -> api.listLiveStreamSessions("vi4k0jvEUuaTdRAEjQ4Jfrgz", "2022-01").execute()); - } - - @Test - @DisplayName("200 response") - public void responseWithStatus200Test() throws ApiException { - answerOnAnyRequest(200, readResourceFile(PAYLOADS_PATH + "responses/200.json")); - - Page page = api.listLiveStreamSessions("vi4k0jvEUuaTdRAEjQ4Jfrgz", "2022-01").execute(); - - assertThat(page.getCurrentPage()).isEqualTo(1); - assertThat(page.getPageSize()).isEqualTo(25); - assertThat(page.getPagesTotal()).isEqualTo(1); - assertThat(page.getCurrentPageItems()).isEqualTo(1); - - assertThat(page.getItems()).containsExactlyInAnyOrder(new LiveStreamSession() - .session(new LiveStreamSessionSession().sessionId("ps4zRWVOv2If2vzKJLMr3jQo") - .loadedAt(OffsetDateTime.parse("2018-09-11T13:04:37.89Z")) - .endedAt(OffsetDateTime.parse("2018-09-11T14:47:22.186Z"))) - .location(new LiveStreamSessionLocation().country("France").city("Paris")) - .referrer(new LiveStreamSessionReferrer().url("unknown").medium("unknown").source("unknown") - .searchTerm("unknown")) - .device(new LiveStreamSessionDevice().type("desktop").vendor("unknown").model("unknown")) - .os(new VideoSessionOs().name("unknown").shortname("unknown").version("unknown")) - .client(new LiveStreamSessionClient().type("browser").name("Firefox").version("61.0"))); - } - - @Test - @DisplayName("404 response") - public void responseWithStatus404Test() throws ApiException { - answerOnAnyRequest(404, readResourceFile(PAYLOADS_PATH + "responses/404.json")); - - assertThatThrownBy(() -> api.listLiveStreamSessions("vi4k0jvEUuaTdRAEjQ4Jfrgz", "2022-01").execute()) - .isInstanceOf(ApiException.class) - .satisfies(e -> assertThat(((ApiException) e).getCode()).isEqualTo(404)) - .hasMessage("The requested resource was not found."); - } - } - - @Nested - @DisplayName("listSessionEvents") - class listSessionEvents { - private static final String PAYLOADS_PATH = "/payloads/rawstatistics/listSessionEvents/"; - - @Test - @DisplayName("required parameters") - public void requiredParametersTest() { - answerOnAnyRequest(201, "{}"); - - assertThatThrownBy(() -> api.listSessionEvents(null).execute()).isInstanceOf(ApiException.class) - .hasMessage("Missing the required parameter 'sessionId' when calling listSessionEvents"); - - assertThatNoException().isThrownBy(() -> api.listSessionEvents("psEmFwGQUAXR2lFHj5nDOpy").execute()); - } - - @Test - @DisplayName("200 response") - public void responseWithStatus200Test() throws ApiException { - answerOnAnyRequest(200, readResourceFile(PAYLOADS_PATH + "responses/200.json")); - - Page page = api.listSessionEvents("psEmFwGQUAXR2lFHj5nDOpy").execute(); - - assertThat(page.getCurrentPage()).isEqualTo(1); - assertThat(page.getCurrentPageItems()).isEqualTo(25); - assertThat(page.getPageSize()).isEqualTo(25); - assertThat(page.getPagesTotal()).isEqualTo(2); - assertThat(page.getItemsTotal()).isEqualTo(30); - - assertThat(page.getItems()).containsExactlyInAnyOrder( - new PlayerSessionEvent().type("ready").emittedAt(OffsetDateTime.parse("2020-09-15T09:47:42+00:00")) - .at(0), - new PlayerSessionEvent().type("play").emittedAt(OffsetDateTime.parse("2020-09-15T21:35:57+00:00")) - .at(0), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:05+00:00")) - .at(7), - new PlayerSessionEvent().type("resume").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:19+00:00")) - .at(21), - new PlayerSessionEvent().type("seek.forward") - .emittedAt(OffsetDateTime.parse("2020-09-15T21:36:19+00:00")).from(7).to(21), - new PlayerSessionEvent().type("end").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:28+00:00")) - .at(30), - new PlayerSessionEvent().type("play").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:29+00:00")) - .at(0), - new PlayerSessionEvent().type("seek.backward") - .emittedAt(OffsetDateTime.parse("2020-09-15T21:36:29+00:00")).from(30).to(0), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:29+00:00")) - .at(21), - new PlayerSessionEvent().type("resume").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:30+00:00")) - .at(21), - new PlayerSessionEvent().type("seek.forward") - .emittedAt(OffsetDateTime.parse("2020-09-15T21:36:30+00:00")).from(0).to(21), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:33+00:00")) - .at(20), - new PlayerSessionEvent().type("resume").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:33+00:00")) - .at(20), - new PlayerSessionEvent().type("seek.backward") - .emittedAt(OffsetDateTime.parse("2020-09-15T21:36:33+00:00")).from(24).to(20), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:39+00:00")) - .at(17), - new PlayerSessionEvent().type("resume").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:39+00:00")) - .at(17), - new PlayerSessionEvent().type("seek.forward") - .emittedAt(OffsetDateTime.parse("2020-09-15T21:36:39+00:00")).from(17).to(17), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-15T21:36:41+00:00")) - .at(19), - new PlayerSessionEvent().type("ready").emittedAt(OffsetDateTime.parse("2020-09-17T09:20:47+00:00")) - .at(0), - new PlayerSessionEvent().type("ready").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:01+00:00")) - .at(0), - new PlayerSessionEvent().type("ready").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:08+00:00")) - .at(0), - new PlayerSessionEvent().type("play").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:10+00:00")) - .at(0), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:12+00:00")) - .at(1), - new PlayerSessionEvent().type("resume").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:13+00:00")) - .at(1), - new PlayerSessionEvent().type("pause").emittedAt(OffsetDateTime.parse("2020-09-17T09:41:15+00:00")) - .at(3)); - } - - @Test - @DisplayName("404 response") - public void responseWithStatus404Test() throws ApiException { - answerOnAnyRequest(404, readResourceFile(PAYLOADS_PATH + "responses/404.json")); - - assertThatThrownBy(() -> api.listSessionEvents("psEmFwGQUAXR2lFHj5nDOpy").execute()) - .isInstanceOf(ApiException.class) - .satisfies(e -> assertThat(((ApiException) e).getCode()).isEqualTo(404)) - .hasMessage("The requested resource was not found."); - } - } - - @Nested - @DisplayName("listVideoSessions") - class listVideoSessions { - private static final String PAYLOADS_PATH = "/payloads/rawstatistics/listVideoSessions/"; - - @Test - @DisplayName("required parameters") - public void requiredParametersTest() { - answerOnAnyRequest(201, "{}"); - - assertThatThrownBy(() -> api.listVideoSessions(null, "2022-01").execute()).isInstanceOf(ApiException.class) - .hasMessage("Missing the required parameter 'videoId' when calling listVideoSessions"); - - assertThatNoException() - .isThrownBy(() -> api.listVideoSessions("vi4k0jvEUuaTdRAEjQ4Prklg", "2022-01").execute()); - } - - @Test - @DisplayName("200 response") - public void responseWithStatus200Test() throws ApiException { - answerOnAnyRequest(200, readResourceFile(PAYLOADS_PATH + "responses/200.json")); - - Page page = api.listVideoSessions("vi4k0jvEUuaTdRAEjQ4Prklg", "2022-01").execute(); - - assertThat(page.getCurrentPage()).isEqualTo(1); - assertThat(page.getPageSize()).isEqualTo(25); - assertThat(page.getPagesTotal()).isEqualTo(1); - assertThat(page.getCurrentPageItems()).isEqualTo(1); - - assertThat(page.getItems()).containsExactlyInAnyOrder(new VideoSession() - .session(new VideoSessionSession().sessionId("psEmFwGQUAXR2lFHj5nDOpy") - .loadedAt(OffsetDateTime.parse("2019-06-24T11:45:01.109Z")) - .endedAt(OffsetDateTime.parse("2019-06-24T11:49:19.243Z"))) - .location(new VideoSessionLocation().country("France").city("Paris")) - .referrer(new VideoSessionReferrer().url("https://api.video").medium("organic") - .source("https://google.com").searchTerm("video encoding hosting and delivery")) - .device(new VideoSessionDevice().type("desktop").vendor("Dell").model("unknown")) - .os(new VideoSessionOs().name("Microsoft Windows").shortname("W10").version("Windows10")) - .client(new VideoSessionClient().type("browser").name("Firefox").version("67.0"))); - } - - @Test - @DisplayName("404 response") - public void responseWithStatus404Test() throws ApiException { - answerOnAnyRequest(404, readResourceFile(PAYLOADS_PATH + "responses/404.json")); - - assertThatThrownBy(() -> api.listVideoSessions("vi4k0jvEUuaTdRAEjQ4Prklg", "2022-01").execute()) - .isInstanceOf(ApiException.class) - .satisfies(e -> assertThat(((ApiException) e).getCode()).isEqualTo(404)) - .hasMessage("The requested resource was not found."); - } - } - -} diff --git a/src/test/resources/payloads/livestreams/create/responses/200.json b/src/test/resources/payloads/livestreams/create/responses/200.json index f834d0a..d1f1df2 100644 --- a/src/test/resources/payloads/livestreams/create/responses/200.json +++ b/src/test/resources/payloads/livestreams/create/responses/200.json @@ -14,7 +14,6 @@ } ], "name" : "Live From New York", "public" : true, - "record" : true, "broadcasting" : false, "assets" : { "iframe" : "", diff --git a/src/test/resources/payloads/livestreams/get/responses/200.json b/src/test/resources/payloads/livestreams/get/responses/200.json index f834d0a..d1f1df2 100644 --- a/src/test/resources/payloads/livestreams/get/responses/200.json +++ b/src/test/resources/payloads/livestreams/get/responses/200.json @@ -14,7 +14,6 @@ } ], "name" : "Live From New York", "public" : true, - "record" : true, "broadcasting" : false, "assets" : { "iframe" : "", diff --git a/src/test/resources/payloads/livestreams/list/responses/200.json b/src/test/resources/payloads/livestreams/list/responses/200.json index 38c503a..2d797b8 100644 --- a/src/test/resources/payloads/livestreams/list/responses/200.json +++ b/src/test/resources/payloads/livestreams/list/responses/200.json @@ -15,7 +15,6 @@ } ], "name" : "Live Stream From the browser", "public" : true, - "record" : true, "broadcasting" : false, "assets" : { "iframe" : "", @@ -39,7 +38,6 @@ } ], "name" : "Live From New York", "public" : true, - "record" : true, "broadcasting" : false, "assets" : { "iframe" : "", diff --git a/src/test/resources/payloads/livestreams/update/responses/200.json b/src/test/resources/payloads/livestreams/update/responses/200.json index f834d0a..d1f1df2 100644 --- a/src/test/resources/payloads/livestreams/update/responses/200.json +++ b/src/test/resources/payloads/livestreams/update/responses/200.json @@ -14,7 +14,6 @@ } ], "name" : "Live From New York", "public" : true, - "record" : true, "broadcasting" : false, "assets" : { "iframe" : "", diff --git a/src/test/resources/payloads/rawstatistics/listLiveStreamSessions/responses/200.json b/src/test/resources/payloads/rawstatistics/listLiveStreamSessions/responses/200.json deleted file mode 100644 index 140bfd1..0000000 --- a/src/test/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/src/test/resources/payloads/rawstatistics/listLiveStreamSessions/responses/404.json b/src/test/resources/payloads/rawstatistics/listLiveStreamSessions/responses/404.json deleted file mode 100644 index 9efa63b..0000000 --- a/src/test/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/src/test/resources/payloads/rawstatistics/listSessionEvents/responses/200.json b/src/test/resources/payloads/rawstatistics/listSessionEvents/responses/200.json deleted file mode 100644 index e444836..0000000 --- a/src/test/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/src/test/resources/payloads/rawstatistics/listSessionEvents/responses/404.json b/src/test/resources/payloads/rawstatistics/listSessionEvents/responses/404.json deleted file mode 100644 index 69b4332..0000000 --- a/src/test/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/src/test/resources/payloads/rawstatistics/listVideoSessions/responses/200.json b/src/test/resources/payloads/rawstatistics/listVideoSessions/responses/200.json deleted file mode 100644 index 9c2c683..0000000 --- a/src/test/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/src/test/resources/payloads/rawstatistics/listVideoSessions/responses/404.json b/src/test/resources/payloads/rawstatistics/listVideoSessions/responses/404.json deleted file mode 100644 index 69b4332..0000000 --- a/src/test/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