com.alipay.api.domain.AlipayOpenPublicMessageSingleSendModel Java Examples
The following examples show how to use
com.alipay.api.domain.AlipayOpenPublicMessageSingleSendModel.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JwSendMessageAPI.java From jeewx-api with Apache License 2.0 | 3 votes |
/** * 单发模板消息(新版API) * @param model * @param config * @return * @throws AlipayApiException */ public static AlipayOpenPublicMessageSingleSendResponse messageSingleSendNew(AlipayOpenPublicMessageSingleSendModel model,AlipayConfig config) throws AlipayApiException{ AlipayOpenPublicMessageSingleSendRequest request = new AlipayOpenPublicMessageSingleSendRequest(); String json = JSONObject.toJSONString(model); request.setBizContent(json); return AlipayClientFactory.getAlipayClientInstance(config).execute(request); }