Skip to content

Commit

Permalink
Fix code tabs on Delegated token upload page
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyzol committed Aug 29, 2023
1 parent 9609618 commit a74a151
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ The clients offered by api.video include:

To install your selected client, do the following:

{% capture samples %}

```go
go get github.com/apivideo/api.video-go-client
```
Expand All @@ -61,7 +63,8 @@ Using Nuget

Install-Package ApiVideo
```

{% endcapture %}
{% include "_partials/code-tabs.html" content: samples %}


## Retrieve your API key
Expand All @@ -77,6 +80,8 @@ You'll need your API key to get started. You can sign up for one here: [Get your

You must first create a token and get the unique token ID to do a delegated upload. Then, you include it in your request as a query parameter. In the body, you place the path to the file you want to upload. If you are uploading a file that's 200 MiB or larger, to do a progressive upload, you will need to break the file into smaller pieces (no smaller than 5 MiB). Then send a request containing the first piece of your upload. Subsequent pieces must be sent with the video ID included in the body along with the file chunk. Retrieve the video ID from the response that comes back after your first request to upload.

{% capture samples %}

```curl
curl --request POST \
--url 'https://ws.api.video/upload?token=__TOKENIDHERE__' \
Expand Down Expand Up @@ -178,7 +183,8 @@ response = videos_api.upload_with_upload_token(token, file)
print(response)
© 2022 GitHub, Inc.
```

{% endcapture %}
{% include "_partials/code-tabs.html" content: samples %}


## Conclusion
Expand Down

0 comments on commit a74a151

Please sign in to comment.