public class AccountService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ApiEndpoints |
_endpoints |
protected EnvironmentSettings |
_settings |
| Constructor and Description |
|---|
AccountService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
Do not use this.
|
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.RequestBody |
createJsonBody(Object body) |
protected <T extends ApiResponse<?>> |
executeRequest(okhttp3.Request apiRequest,
Class<T> classOfT,
String requestBody) |
GetAccountInfoResponse |
getAccountInfo()
Get the account info (remaining credits, max concurrency, etc).
|
protected void |
setEnvironment(IndexingOptionsGeneric options) |
protected final EnvironmentSettings _settings
protected final ApiEndpoints _endpoints
public AccountService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
TxClient.account()httpClient - The http client for API callssettings - environment settingspublic GetAccountInfoResponse getAccountInfo() throws TxException
TxException - Thrown when an API error occursprotected void setEnvironment(IndexingOptionsGeneric options)
protected okhttp3.RequestBody createJsonBody(Object body)
protected <T extends ApiResponse<?>> HttpResponse<T> executeRequest(okhttp3.Request apiRequest, Class<T> classOfT, String requestBody) throws TxException
TxExceptionCopyright © 2025. All rights reserved.