Skip to content

Commit

Permalink
feat(nodejs) upload with token and videoId
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Mar 13, 2023
1 parent d537235 commit ae2e7dd
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 106 deletions.
1 change: 1 addition & 0 deletions doc/api/VideosApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ This method allows you to send a video using an upload token. Upload tokens are
| **token** | **string**| **yes**| The unique identifier for the token you want to use to upload a video. |
| **file** | **string \| Readable \| Buffer**| **yes**| The path to the video you want to upload. |
| **progressListener** | **(event: UploadProgressEvent) => void \| undefined** | no | Optional upload progress listener |
| **videoId** | **string \| undefined** | no | Optional videoId |

### Return type

Expand Down
183 changes: 84 additions & 99 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/api/PlayerThemesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ export default class PlayerThemesApi {
const formData = new FormData();

formData.append(fileName, fileBuffer, fileName);

if (typeof link !== undefined) {
formData.append('link', link);
}
Expand Down
Loading

0 comments on commit ae2e7dd

Please sign in to comment.