Skip to content

Commit

Permalink
Docs/mobile readme upload token only
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee authored Oct 23, 2023
1 parent 9ca3336 commit b7cb5b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,12 @@ Method | HTTP request | Description

Most endpoints required to be authenticated using the API key mechanism described in our [documentation](https://docs.api.video/reference#authentication).
The access token generation mechanism is automatically handled by the client. All you have to do is provide an API key when instantiating the `ApiVideoClient`:

```java
ApiVideoClient client = new ApiVideoClient("YOUR_API_KEY");
```


### Public endpoints

Some endpoints don't require authentication. These one can be called with a client instantiated without API key:
Expand Down
2 changes: 2 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3424,6 +3424,8 @@ paths:
// First add the "video.api:android-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-android-client/blob/main/docs/VideosApi.md#uploadWithUploadToken

VideosApiStore.initialize()

val workManager = WorkManager.getInstance(context) // WorkManager comes from package "androidx.work:work-runtime"

val token = "to1tcmSFHeYY5KzyhOqVKMKb" // The unique identifier for the token you want to use to upload a video.
Expand Down

0 comments on commit b7cb5b4

Please sign in to comment.