You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/APIs/AuthenticationAPI.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import AnyCodable
13
13
openclassAuthenticationAPI{
14
14
15
15
/**
16
-
Authenticate
16
+
Advanced - Authenticate (1/2)
17
17
18
18
- parameter authenticatePayload: (body)
19
19
- parameter apiResponseQueue: The queue on which api response is dispatched.
@@ -33,7 +33,7 @@ open class AuthenticationAPI {
33
33
34
34
35
35
/**
36
-
Authenticate
36
+
Advanced - Authenticate (1/2)
37
37
- POST /auth/api-key
38
38
- To get started, submit your API key in the body of your request. api.video returns an access token that is valid for one hour (3600 seconds). A refresh token is also returned. View a [tutorial](https://api.video/blog/tutorials/authentication-tutorial) on authentication. All tutorials using the [authentication endpoint](https://api.video/blog/endpoints/authenticate)
39
39
- parameter authenticatePayload: (body)
@@ -59,7 +59,7 @@ open class AuthenticationAPI {
59
59
60
60
61
61
/**
62
-
Refresh token
62
+
Advanced - Refresh token (2/2)
63
63
64
64
- parameter refreshTokenPayload: (body)
65
65
- parameter apiResponseQueue: The queue on which api response is dispatched.
@@ -79,7 +79,7 @@ open class AuthenticationAPI {
79
79
80
80
81
81
/**
82
-
Refresh token
82
+
Advanced - Refresh token (2/2)
83
83
- POST /auth/refresh
84
84
- Use the refresh endpoint with the refresh token you received when you first authenticated using the api-key endpoint. Send the refresh token in the body of your request. The api.video API returns a new access token that is valid for one hour (3600 seconds) and a new refresh token.
Copy file name to clipboardExpand all lines: Sources/APIs/RawStatisticsAPI.swift
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@ open class RawStatisticsAPI {
16
16
List live stream player sessions
17
17
18
18
- parameter liveStreamId: (path) The unique identifier for the live stream you want to retrieve analytics for.
19
-
- parameter period: (query) 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\" (optional)
19
+
- parameter period: (query) 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\"
20
20
- parameter currentPage: (query) Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1)
21
21
- parameter pageSize: (query) Results per page. Allowed values 1-100, default is 25. (optional, default to 25)
22
22
- parameter apiResponseQueue: The queue on which api response is dispatched.
23
23
- parameter completion: completion handler to receive the data and the error objects.
returnlistLiveStreamSessionsWithRequestBuilder(liveStreamId: liveStreamId, period: period, currentPage: currentPage, pageSize: pageSize).execute(apiResponseQueue){ result in
28
28
switch result {
29
29
caselet.success(response):
@@ -39,12 +39,12 @@ open class RawStatisticsAPI {
39
39
List live stream player sessions
40
40
- GET /analytics/live-streams/{liveStreamId}
41
41
- parameter liveStreamId: (path) The unique identifier for the live stream you want to retrieve analytics for.
42
-
- parameter period: (query) 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\" (optional)
42
+
- parameter period: (query) 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\"
43
43
- parameter currentPage: (query) Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1)
44
44
- parameter pageSize: (query) Results per page. Allowed values 1-100, default is 25. (optional, default to 25)
@@ -132,15 +132,15 @@ open class RawStatisticsAPI {
132
132
List video player sessions
133
133
134
134
- parameter videoId: (path) The unique identifier for the video you want to retrieve session information for.
135
-
- parameter period: (query) 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 (optional)
135
+
- parameter period: (query) 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
136
136
- parameter metadata: (query) 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)
137
137
- parameter currentPage: (query) Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1)
138
138
- parameter pageSize: (query) Results per page. Allowed values 1-100, default is 25. (optional, default to 25)
139
139
- parameter apiResponseQueue: The queue on which api response is dispatched.
140
140
- parameter completion: completion handler to receive the data and the error objects.
returnlistVideoSessionsWithRequestBuilder(videoId: videoId, period: period, metadata: metadata, currentPage: currentPage, pageSize: pageSize).execute(apiResponseQueue){ result in
145
145
switch result {
146
146
caselet.success(response):
@@ -157,13 +157,13 @@ open class RawStatisticsAPI {
157
157
- GET /analytics/videos/{videoId}
158
158
- Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics).
159
159
- parameter videoId: (path) The unique identifier for the video you want to retrieve session information for.
160
-
- parameter period: (query) 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 (optional)
160
+
- parameter period: (query) 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
161
161
- parameter metadata: (query) 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)
162
162
- parameter currentPage: (query) Choose the number of search results to return per page. Minimum value: 1 (optional, default to 1)
163
163
- parameter pageSize: (query) Results per page. Allowed values 1-100, default is 25. (optional, default to 25)
To get started, submit your API key in the body of your request. api.video returns an access token that is valid for one hour (3600 seconds). A refresh token is also returned. View a [tutorial](https://api.video/blog/tutorials/authentication-tutorial) on authentication. All tutorials using the [authentication endpoint](https://api.video/blog/endpoints/authenticate)
19
19
@@ -25,7 +25,7 @@ import ApiVideoClient
25
25
26
26
let authenticatePayload = authenticate-payload(apiKey: "apiKey_example") // AuthenticatePayload |
27
27
28
-
// Authenticate
28
+
//Advanced - Authenticate (1/2)
29
29
AuthenticationAPI.authenticate(authenticatePayload: authenticatePayload) { (response, error) in
Use the refresh endpoint with the refresh token you received when you first authenticated using the api-key endpoint. Send the refresh token in the body of your request. The api.video API returns a new access token that is valid for one hour (3600 seconds) and a new refresh token.
70
70
@@ -76,7 +76,7 @@ import ApiVideoClient
76
76
77
77
let refreshTokenPayload = refresh-token-payload(refreshToken: "refreshToken_example") // RefreshTokenPayload |
78
78
79
-
// Refresh token
79
+
//Advanced - Refresh token (2/2)
80
80
AuthenticationAPI.refresh(refreshTokenPayload: refreshTokenPayload) { (response, error) in
0 commit comments