public class AlipayOpenPublicMessageSingleApi extends Object
| 构造器和说明 |
|---|
AlipayOpenPublicMessageSingleApi() |
AlipayOpenPublicMessageSingleApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
Object |
send(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel)
单发模板消息
商户可使用该接口向用户推送制定模板的消息,如动账提醒、停车通知等消息,消息模板可在生活号后台(fuwu.alipay.com)领取,点击“模板消息”菜单,即可在模板库中领取行业对应的模板
|
Object |
send(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel,
CustomizedParams customizedParams) |
okhttp3.Call |
sendAsync(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel,
ApiCallback<Object> _callback)
单发模板消息 (asynchronously)
商户可使用该接口向用户推送制定模板的消息,如动账提醒、停车通知等消息,消息模板可在生活号后台(fuwu.alipay.com)领取,点击“模板消息”菜单,即可在模板库中领取行业对应的模板
|
okhttp3.Call |
sendAsync(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel,
ApiCallback<Object> _callback,
CustomizedParams customizedParams) |
okhttp3.Call |
sendCall(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel,
ApiCallback _callback,
CustomizedParams customizedParams)
Build call for send
|
ApiResponse<Object> |
sendWithHttpInfo(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel,
CustomizedParams customizedParams)
单发模板消息
商户可使用该接口向用户推送制定模板的消息,如动账提醒、停车通知等消息,消息模板可在生活号后台(fuwu.alipay.com)领取,点击“模板消息”菜单,即可在模板库中领取行业对应的模板
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public AlipayOpenPublicMessageSingleApi()
public AlipayOpenPublicMessageSingleApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call sendCall(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel, ApiCallback _callback, CustomizedParams customizedParams) throws ApiException
alipayOpenPublicMessageSingleSendModel - (optional)_callback - Callback for upload/download progresscustomizedParams - ApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public Object send(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel) throws ApiException
alipayOpenPublicMessageSingleSendModel - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public Object send(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic ApiResponse<Object> sendWithHttpInfo(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel, CustomizedParams customizedParams) throws ApiException
alipayOpenPublicMessageSingleSendModel - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call sendAsync(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel, ApiCallback<Object> _callback) throws ApiException
alipayOpenPublicMessageSingleSendModel - (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call sendAsync(AlipayOpenPublicMessageSingleSendModel alipayOpenPublicMessageSingleSendModel, ApiCallback<Object> _callback, CustomizedParams customizedParams) throws ApiException
ApiExceptionCopyright © 2024. All rights reserved.