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.
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 ApiVideoUploader
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 ApiVideoUploader
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