From b7cb5b455cd19f01769a9b6cd85d5d8be0195df2 Mon Sep 17 00:00:00 2001 From: ThibaultBee Date: Mon, 23 Oct 2023 14:37:50 +0000 Subject: [PATCH] Docs/mobile readme upload token only --- README.md | 2 ++ api/openapi.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index e76c192..c00b941 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/api/openapi.yaml b/api/openapi.yaml index 7e0c833..89379ee 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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.