Package video.api.client
Class ApiVideoClient
- java.lang.Object
-
- video.api.client.ApiVideoClient
-
public class ApiVideoClient extends 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(String apiKey)Build an instance that targets the production environment with authenticationApiVideoClient(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
All Methods Instance Methods Concrete Methods 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 instance
-
-
-
Constructor Detail
-
ApiVideoClient
public ApiVideoClient()
Build an instance that targets production environment without authentication
-
ApiVideoClient
public ApiVideoClient(ApiVideoClient.Environment environment)
Build an instance that targets the given environment without authentication- Parameters:
environment- the target environment
-
ApiVideoClient
public ApiVideoClient(String apiKey)
Build an instance that targets the production environment with authentication- Parameters:
apiKey- the api key to use to authenticate
-
ApiVideoClient
public ApiVideoClient(String apiKey, ApiVideoClient.Environment environment)
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
public ApiVideoClient(okhttp3.OkHttpClient client, ApiVideoClient.Environment environment)Build an instance that targets the production environment using a custom OkHttp client- Parameters:
client- the OkHttpClient instance to useenvironment- the target environment
-
-
Method Detail
-
captions
public CaptionsApi captions()
Get an CaptionsApi instance- Returns:
- CaptionsApi
-
chapters
public ChaptersApi chapters()
Get an ChaptersApi instance- Returns:
- ChaptersApi
-
liveStreams
public LiveStreamsApi liveStreams()
Get an LiveStreamsApi instance- Returns:
- LiveStreamsApi
-
playerThemes
public PlayerThemesApi playerThemes()
Get an PlayerThemesApi instance- Returns:
- PlayerThemesApi
-
rawStatistics
public RawStatisticsApi rawStatistics()
Get an RawStatisticsApi instance- Returns:
- RawStatisticsApi
-
uploadTokens
public UploadTokensApi uploadTokens()
Get an UploadTokensApi instance- Returns:
- UploadTokensApi
-
videos
public VideosApi videos()
Get an VideosApi instance- Returns:
- VideosApi
-
webhooks
public WebhooksApi webhooks()
Get an WebhooksApi instance- Returns:
- WebhooksApi
-
getHttpClient
public ApiClient getHttpClient()
-
getUploadChunkSize
public long getUploadChunkSize()
-
setUploadChunkSize
public void setUploadChunkSize(long uploadChunkSize)
-
-