public class NumberApi extends Object
| Constructor and Description |
|---|
NumberApi() |
NumberApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
String |
numbersBuyByDedicatedNumberPost(String dedicatedNumber)
Buy dedicated number
Buy dedicated number
|
com.squareup.okhttp.Call |
numbersBuyByDedicatedNumberPostAsync(String dedicatedNumber,
ApiCallback<String> callback)
Buy dedicated number (asynchronously)
Buy dedicated number
|
com.squareup.okhttp.Call |
numbersBuyByDedicatedNumberPostCall(String dedicatedNumber,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for numbersBuyByDedicatedNumberPost
|
ApiResponse<String> |
numbersBuyByDedicatedNumberPostWithHttpInfo(String dedicatedNumber)
Buy dedicated number
Buy dedicated number
|
String |
numbersGet(Integer page,
Integer limit)
Get all availible dedicated numbers
Get all availible dedicated numbers
|
com.squareup.okhttp.Call |
numbersGetAsync(Integer page,
Integer limit,
ApiCallback<String> callback)
Get all availible dedicated numbers (asynchronously)
Get all availible dedicated numbers
|
com.squareup.okhttp.Call |
numbersGetCall(Integer page,
Integer limit,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for numbersGet
|
ApiResponse<String> |
numbersGetWithHttpInfo(Integer page,
Integer limit)
Get all availible dedicated numbers
Get all availible dedicated numbers
|
String |
numbersSearchByCountryGet(String country,
String search,
Integer searchType,
Integer page,
Integer limit)
Get all dedicated numbers by country
Get all dedicated numbers by country
|
com.squareup.okhttp.Call |
numbersSearchByCountryGetAsync(String country,
String search,
Integer searchType,
Integer page,
Integer limit,
ApiCallback<String> callback)
Get all dedicated numbers by country (asynchronously)
Get all dedicated numbers by country
|
com.squareup.okhttp.Call |
numbersSearchByCountryGetCall(String country,
String search,
Integer searchType,
Integer page,
Integer limit,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for numbersSearchByCountryGet
|
ApiResponse<String> |
numbersSearchByCountryGetWithHttpInfo(String country,
String search,
Integer searchType,
Integer page,
Integer limit)
Get all dedicated numbers by country
Get all dedicated numbers by country
|
void |
setApiClient(ApiClient apiClient) |
public NumberApi()
public NumberApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call numbersBuyByDedicatedNumberPostCall(String dedicatedNumber, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
dedicatedNumber - Phone number to purchase (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic String numbersBuyByDedicatedNumberPost(String dedicatedNumber) throws ApiException
dedicatedNumber - Phone number to purchase (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> numbersBuyByDedicatedNumberPostWithHttpInfo(String dedicatedNumber) throws ApiException
dedicatedNumber - Phone number to purchase (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call numbersBuyByDedicatedNumberPostAsync(String dedicatedNumber, ApiCallback<String> callback) throws ApiException
dedicatedNumber - Phone number to purchase (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call numbersGetCall(Integer page, Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic String numbersGet(Integer page, Integer limit) throws ApiException
page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> numbersGetWithHttpInfo(Integer page, Integer limit) throws ApiException
page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call numbersGetAsync(Integer page, Integer limit, ApiCallback<String> callback) throws ApiException
page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call numbersSearchByCountryGetCall(String country, String search, Integer searchType, Integer page, Integer limit, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
country - Country code to search (required)search - Your search pattern or query. (optional)searchType - Your strategy for searching, 0 = starts with, 1 = anywhere, 2 = ends with. (optional)page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic String numbersSearchByCountryGet(String country, String search, Integer searchType, Integer page, Integer limit) throws ApiException
country - Country code to search (required)search - Your search pattern or query. (optional)searchType - Your strategy for searching, 0 = starts with, 1 = anywhere, 2 = ends with. (optional)page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> numbersSearchByCountryGetWithHttpInfo(String country, String search, Integer searchType, Integer page, Integer limit) throws ApiException
country - Country code to search (required)search - Your search pattern or query. (optional)searchType - Your strategy for searching, 0 = starts with, 1 = anywhere, 2 = ends with. (optional)page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call numbersSearchByCountryGetAsync(String country, String search, Integer searchType, Integer page, Integer limit, ApiCallback<String> callback) throws ApiException
country - Country code to search (required)search - Your search pattern or query. (optional)searchType - Your strategy for searching, 0 = starts with, 1 = anywhere, 2 = ends with. (optional)page - Page number (optional, default to 1)limit - Number of records per page (optional, default to 10)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.