Skip to content

Commit

Permalink
docs(java): add async and withHttpInfo methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee authored Apr 22, 2024
1 parent d850558 commit a2d1880
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/AdvancedAuthenticationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Method | HTTP request | Description
<a name="authenticate"></a>
# **authenticate**
> AccessToken authenticate(authenticatePayload)
> okhttp3.Call authenticateAsync(authenticatePayload, callback)
> ApiResponse<AccessToken> authenticateWithHttpInfo(authenticatePayload)
Get Bearer Token

Returns a bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication).
Expand Down Expand Up @@ -77,7 +78,8 @@ No authorization required
<a name="refresh"></a>
# **refresh**
> AccessToken refresh(refreshTokenPayload)
> okhttp3.Call refreshAsync(refreshTokenPayload, callback)
> ApiResponse<AccessToken> refreshWithHttpInfo(refreshTokenPayload)
Refresh Bearer Token

Accepts the old bearer token and returns a new bearer token that can be used to authenticate other endpoint. You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication).
Expand Down
6 changes: 4 additions & 2 deletions docs/VideosApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Method | HTTP request | Description
<a name="upload"></a>
# **upload**
> Video upload(videoId, file)
> okhttp3.Call uploadAsync(videoId, file, callback)
> ApiResponse<Video> uploadWithHttpInfo(videoId, file)
Upload a video

To upload a video to the videoId you created. You can only upload your video to the videoId once.
Expand Down Expand Up @@ -124,7 +125,8 @@ Video result = session.uploadLastPart(new File("sample.mp4.partn"));
<a name="uploadWithUploadToken"></a>
# **uploadWithUploadToken**
> Video uploadWithUploadToken(token, file)
> okhttp3.Call uploadWithUploadTokenAsync(token, file, callback)
> ApiResponse<Video> uploadWithUploadTokenWithHttpInfo(token, file)
Upload with an delegated upload token

This method allows you to send a video using an upload token. Upload tokens are especially useful when the upload is done from the client side. If you want to upload a video from your server-side application, you'd better use the [standard upload method](#upload).
Expand Down

0 comments on commit a2d1880

Please sign in to comment.