Skip to content

Commit

Permalink
Merge pull request #72 from apivideo/recovery-pr
Browse files Browse the repository at this point in the history
Empty commit
  • Loading branch information
bot-api-video authored Sep 11, 2023
2 parents aae6f70 + 7401dea commit fc1c2f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
10 changes: 5 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ paths:
- Advanced authentication
x-client-action: authenticate
x-client-hidden: true
x-readme:
x-doctave:
code-samples:
- language: go
code: |
Expand Down Expand Up @@ -133,7 +133,7 @@ paths:
- Advanced authentication
x-client-action: refresh
x-client-hidden: true
x-readme:
x-doctave:
code-samples:
- language: go
code: |
Expand Down Expand Up @@ -291,7 +291,7 @@ paths:
\ the chunk that \"completes\" the upload).\n"
x-client-action: upload
x-client-chunk-upload: true
x-readme:
x-doctave:
explorer-enabled: false
code-samples:
- language: go
Expand Down Expand Up @@ -541,7 +541,7 @@ paths:
use the [standard upload method](#upload).
x-client-action: uploadWithUploadToken
x-client-chunk-upload: true
x-readme:
x-doctave:
code-samples:
- language: go
code: |
Expand Down Expand Up @@ -953,7 +953,7 @@ x-stoplight:
x-client-base-paths:
production: https://ws.api.video
sandbox: https://sandbox.api.video
x-readme:
x-doctave:
explorer-enabled: true
proxy-enabled: true
samples-enabled: true
Expand Down
18 changes: 8 additions & 10 deletions docs/VideosApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,20 @@ The latter allows you to split a video source into X chunks and send those chunk

### Example
```java
import video.api.client.ApiVideoClient;
import video.api.client.api.ApiException;
import video.api.client.api.models.*;
import video.api.client.api.clients.VideosApi;
// Import classes:
import video.api.uploader.api.ApiException;
import video.api.uploader.api.models.*;
import video.api.uploader.VideosApi;
import java.util.*;

public class Example {
public static void main(String[] args) {
ApiVideoClient client = new ApiVideoClient("YOUR_API_KEY");
VideosApi apiInstance = new videos("YOUR_API_KEY");
// if you rather like to use the sandbox environment:
// ApiVideoClient client = new ApiVideoClient("YOUR_SANDBOX_API_KEY", ApiVideoClient.Environment.SANDBOX);

VideosApi apiInstance = client.videos();

// VideosApi apiInstance = new videos("YOUR_SANDBOX_API_KEY", Environment.SANDBOX);

String videoId = "vi4k0jvEUuaTdRAEjQ4Jfrgz"; // Enter the videoId you want to use to upload your video.
File file = new File("/path/to/file"); // The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the "/videos" endpoint and add the "source" parameter when you create a new video.
File file = new File("/path/to/file"); // The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \\\"/videos\\\" endpoint and add the \\\"source\\\" parameter when you create a new video.

try {
Video result = apiInstance.upload(videoId, file);
Expand Down

0 comments on commit fc1c2f6

Please sign in to comment.