Package video.api.client
Class ApiVideoClient
java.lang.Object
video.api.client.ApiVideoClient
public class ApiVideoClient
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApiVideoClient.Environment -
Constructor Summary
Constructors Constructor Description ApiVideoClient()Build an instance that targets production environment without authenticationApiVideoClient(java.lang.String apiKey)Build an instance that targets the production environment with authenticationApiVideoClient(java.lang.String apiKey, ApiVideoClient.Environment environment)Build an instance that targets the given environment with authenticationApiVideoClient(okhttp3.OkHttpClient client)Build an instance that targets the production environment using a custom OkHttp clientApiVideoClient(okhttp3.OkHttpClient client, ApiVideoClient.Environment environment)Build an instance that targets the production environment using a custom OkHttp clientApiVideoClient(ApiVideoClient.Environment environment)Build an instance that targets the given environment without authentication -
Method Summary
Modifier and Type Method Description CaptionsApicaptions()Get an CaptionsApi instanceChaptersApichapters()Get an ChaptersApi instanceApiClientgetHttpClient()longgetUploadChunkSize()LiveStreamsApiliveStreams()Get an LiveStreamsApi instancePlayerThemesApiplayerThemes()Get an PlayerThemesApi instanceRawStatisticsApirawStatistics()Get an RawStatisticsApi instancevoidsetUploadChunkSize(long uploadChunkSize)UploadTokensApiuploadTokens()Get an UploadTokensApi instanceVideosApivideos()Get an VideosApi instanceWebhooksApiwebhooks()Get an WebhooksApi instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ApiVideoClient
public ApiVideoClient()Build an instance that targets production environment without authentication -
ApiVideoClient
Build an instance that targets the given environment without authentication- Parameters:
environment- the target environment
-
ApiVideoClient
public ApiVideoClient(java.lang.String apiKey)Build an instance that targets the production environment with authentication- Parameters:
apiKey- the api key to use to authenticate
-
ApiVideoClient
Build an instance that targets the given environment with authentication- Parameters:
apiKey- the api key to use to authenticateenvironment- the target environment
-
ApiVideoClient
public ApiVideoClient(okhttp3.OkHttpClient client)Build an instance that targets the production environment using a custom OkHttp client- Parameters:
client- the OkHttpClient instance to use
-
ApiVideoClient
Build an instance that targets the production environment using a custom OkHttp client- Parameters:
client- the OkHttpClient instance to useenvironment- the target environment
-
-
Method Details
-
captions
Get an CaptionsApi instance- Returns:
- CaptionsApi
-
chapters
Get an ChaptersApi instance- Returns:
- ChaptersApi
-
liveStreams
Get an LiveStreamsApi instance- Returns:
- LiveStreamsApi
-
playerThemes
Get an PlayerThemesApi instance- Returns:
- PlayerThemesApi
-
rawStatistics
Get an RawStatisticsApi instance- Returns:
- RawStatisticsApi
-
uploadTokens
Get an UploadTokensApi instance- Returns:
- UploadTokensApi
-
videos
Get an VideosApi instance- Returns:
- VideosApi
-
webhooks
Get an WebhooksApi instance- Returns:
- WebhooksApi
-
getHttpClient
-
getUploadChunkSize
public long getUploadChunkSize() -
setUploadChunkSize
public void setUploadChunkSize(long uploadChunkSize)
-