public static class WhatsAppBusinessAccount.APIRequestCreatePhoneNumber extends APIRequest<APINode>
APIRequest.DefaultAsyncRequestExecutor, APIRequest.DefaultRequestExecutor, APIRequest.IAsyncRequestExecutor, APIRequest.IRequestExecutor, APIRequest.RequestHelper, APIRequest.ResponseParser<T extends APINode>, APIRequest.ResponseWrapper| Modifier and Type | Field and Description |
|---|---|
static String[] |
FIELDS |
static String[] |
PARAMS |
context, endpoint, method, nodeId, paramNames, params, parser, returnFields, USER_AGENT, useVideoEndpoint| Constructor and Description |
|---|
APIRequestCreatePhoneNumber(String nodeId,
APIContext context) |
addToBatch, addToBatch, addToBatch, changeAsyncRequestExecutor, changeRequestExecutor, executeAsyncBase, executeAsyncBase, executeAsyncInternal, executeAsyncInternal, executeInternal, executeInternal, getAsyncExecutor, getContext, getExecutor, joinStringList, requestFieldInternal, setContext, setOverrideUrl, setParamInternal, setParamsInternal, setUseVideoEndpointpublic APIRequestCreatePhoneNumber(String nodeId, APIContext context)
public APINode getLastResponse()
getLastResponse in class APIRequest<APINode>public APINode parseResponse(String response, String header) throws APIException
parseResponse in class APIRequest<APINode>APIExceptionpublic APINode execute() throws APIException
execute in class APIRequest<APINode>APIExceptionpublic APINode execute(Map<String,Object> extraParams) throws APIException
execute in class APIRequest<APINode>APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<APINode> executeAsync() throws APIException
APIExceptionpublic com.google.common.util.concurrent.ListenableFuture<APINode> executeAsync(Map<String,Object> extraParams) throws APIException
APIExceptionpublic WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setParam(String param, Object value)
setParam in class APIRequest<APINode>public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setParams(Map<String,Object> params)
setParams in class APIRequest<APINode>public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setCc(String cc)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setMigratePhoneNumber(Boolean migratePhoneNumber)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setMigratePhoneNumber(String migratePhoneNumber)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setPhoneNumber(String phoneNumber)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setPreverifiedId(String preverifiedId)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber setVerifiedName(String verifiedName)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestAllFields()
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestAllFields(boolean value)
public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestFields(List<String> fields)
requestFields in class APIRequest<APINode>public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestFields(List<String> fields, boolean value)
requestFields in class APIRequest<APINode>public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestField(String field)
requestField in class APIRequest<APINode>public WhatsAppBusinessAccount.APIRequestCreatePhoneNumber requestField(String field, boolean value)
requestField in class APIRequest<APINode>Copyright © 2024. All rights reserved.