All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.xinyangpan.wechat4j.api.CustomerServiceApi Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package io.github.xinyangpan.wechat4j.api;

import io.github.xinyangpan.wechat4j.core.dto.json.MsgRecordRequest;
import io.github.xinyangpan.wechat4j.core.dto.json.MsgRecordResult;
import okhttp3.HttpUrl;

public class CustomerServiceApi extends AbstractBusinessApi {

	public  MsgRecordResult getMessageRecord(MsgRecordRequest msgRecordRequest) {
		HttpUrl url = wechatExtService.csBuilder()//
			.addPathSegment("msgrecord")//
			.addPathSegment("getmsglist")//
			.addQueryParameter("access_token", coreApi.currentAccessToken())//
			.build();
		MsgRecordResult msgRecordResult = restTemplate.postForObject(url.toString(), msgRecordRequest, MsgRecordResult.class);
		return msgRecordResult.throwExceptionIfError();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy