com.alipay.api.response.AlipayMobilePublicMessageSingleSendResponse Java Examples

The following examples show how to use com.alipay.api.response.AlipayMobilePublicMessageSingleSendResponse. 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 5 votes vote down vote up
/**
 * 单发模板消息
 * 
 * @param appAuthToken
 *            商户授权后获取的app_auth_token
 * @param model
 * @return
 * @throws AlipayApiException
 */
public static AlipayMobilePublicMessageSingleSendResponse messageSingleSend(String appAuthToken, SendMessageImageModel model,AlipayConfig config) throws AlipayApiException {
	AlipayMobilePublicMessageSingleSendRequest request = new AlipayMobilePublicMessageSingleSendRequest();
	request.putOtherTextParam("app_auth_token", appAuthToken);
	String json = "";
	//update-begin--author:zhangjiaqiang Date:20161028 for:#1486 【支付窗】模板消息接口、推广二维码研究
	json = JSONObject.toJSONString(model,SerializerFeature.WriteMapNullValue);
	//update-end--author:zhangjiaqiang Date:20161028 for:#1486 【支付窗】模板消息接口、推广二维码研究
	request.setBizContent(json);
	return AlipayClientFactory.getAlipayClientInstance(config).execute(request);
}
 
Example #2
Source File: AlipayMobilePublicMessageSingleSendRequest.java    From alipay-sdk-java-all with Apache License 2.0 4 votes vote down vote up
public Class<AlipayMobilePublicMessageSingleSendResponse> getResponseClass() {
	return AlipayMobilePublicMessageSingleSendResponse.class;
}
 
Example #3
Source File: AlipayMobilePublicMessageSingleSendRequest.java    From alipay-sdk with Apache License 2.0 4 votes vote down vote up
public Class<AlipayMobilePublicMessageSingleSendResponse> getResponseClass() {
	return AlipayMobilePublicMessageSingleSendResponse.class;
}
 
Example #4
Source File: AlipayMobilePublicMessageSingleSendRequest.java    From pay with Apache License 2.0 4 votes vote down vote up
public Class<AlipayMobilePublicMessageSingleSendResponse> getResponseClass() {
	return AlipayMobilePublicMessageSingleSendResponse.class;
}