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

com.seejoke.wechat.api.IService Maven / Gradle / Ivy

package com.seejoke.wechat.api;

import com.seejoke.wechat.entity.*;
import com.seejoke.wechat.entity.result.*;
import com.seejoke.wechat.exception.WxErrorException;
import com.seejoke.wechat.util.http.RequestExecutor;
import com.seejoke.wechat.entity.WxUserList.WxUser;
import com.seejoke.wechat.entity.WxUserList.WxUser.WxUserGet;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;


public interface IService {

	boolean checkSignature(String msgSignature, String timestamp, String nonce, String data);

	String getAccessToken() throws WxErrorException;

	String getAccessToken(boolean forceRefresh) throws WxErrorException;

	String createMenu(WxMenu menu, boolean condition) throws WxErrorException;

	String deleteMenu() throws WxErrorException;

	String deleteMenu(String menuId) throws WxErrorException;

	WxMenuResult getMenu() throws WxErrorException;

	WxCurMenuInfoResult getMenuCurInfo() throws WxErrorException;

	String menuTryMatch(String userId) throws WxErrorException;

	WxMediaUploadResult uploadTempMedia(String mediaType, String fileType, InputStream inputStream)
			throws WxErrorException, IOException;

	WxMediaUploadResult uploadTempMedia(String mediaType, File file) throws WxErrorException;

	File downloadTempMedia(String mediaId, File path) throws WxErrorException;

	WxMediaUploadResult uploadMedia(String mediaType, String fileType, InputStream inputStream, WxVideoIntroduction introduction)
			throws WxErrorException, IOException;

	WxMediaUploadResult uploadMedia(String mediaType, File file, WxVideoIntroduction introduction) throws WxErrorException;

	File downloadMedia(String mediaId, File path) throws WxErrorException;

	WxNewsMediaResult downloadNewsMedia(String mediaId) throws WxErrorException;

	WxVideoMediaResult downloadVideoMedia(String mediaId, File path) throws WxErrorException;

	WxError deleteMediaMaterial(String mediaId) throws WxErrorException;

	WxMediaUploadResult imageDomainChange(File file) throws WxErrorException;

	String addNewsMedia(List news) throws WxErrorException;

	WxError updateNewsInfo(String mediaId, int index, WxNewsInfo newInfo) throws WxErrorException;

	WxMaterialCountResult getMaterialCount() throws WxErrorException;

	WxBatchGetMaterialResult batchGetMeterial(String type, int offset, int count) throws WxErrorException;

	WxUserTagResult createUserTag(String name) throws WxErrorException;

	WxError deleteUserTag(int tagId) throws WxErrorException;

	WxUserTagResult queryAllUserTag() throws WxErrorException;

	WxUserListResult queryAllUserUnderByTag(int tagId, String nextOpenid) throws WxErrorException;

	WxError updateUserTagName(int tagId, String name) throws WxErrorException;

	WxError batchMovingUserToNewTag(List userIdList, int toTagId) throws WxErrorException;

	WxError batchRemoveUserTag(List userIdList, int tagId) throws WxErrorException;

	WxError updateUserRemark(String openid, String remark) throws WxErrorException;

	WxUser getUserInfoByOpenId(WxUserGet userGet) throws WxErrorException;

	WxUserList batchGetUserInfo(List usersGet) throws WxErrorException;

	WxUserListResult batchGetUserOpenId(String nextOpenid) throws WxErrorException;

	WxError batchAddUserToBlackList(List userList) throws WxErrorException;

	WxError batchRemoveUserFromBlackList(List userList) throws WxErrorException;

	WxUserListResult batchGetUsersFromBlackList(String nextOpenId) throws WxErrorException;

	String oauth2buildAuthorizationUrl(String redirectUri, String scope, String state) throws WxErrorException;;

	WxOAuth2AccessTokenResult oauth2ToGetAccessToken(String code) throws WxErrorException;

	WxOAuth2AccessTokenResult oauth2ToGetRefreshAccessToken(String refreshToken) throws WxErrorException;

	WxUser oauth2ToGetUserInfo(String accessToken, WxUserGet userGet) throws WxErrorException;

	WxError oauth2CheckAccessToken(String accessToken, String openid) throws WxErrorException;

	QrCodeResult createQrCode(WxQrcode qrcode) throws WxErrorException;

	File downloadQrCode(File dir, String ticket) throws WxErrorException;

	String getShortUrl(String long_url) throws WxErrorException;

	String getJsapiTicket() throws WxErrorException;

	String getJsapiTicket(boolean forceRefresh) throws WxErrorException;

	WxJsapiConfig createJsapiConfig(String url, List jsApiList) throws WxErrorException;

	String[] getCallbackIp() throws WxErrorException;

	SenderResult sendAllByTag(WxTagSender sender) throws WxErrorException;

	SenderResult sendAllByOpenid(WxOpenidSender sender) throws WxErrorException;

	SenderResult sendAllPreview(PreviewSender sender) throws WxErrorException;

	SenderResult sendAllDelete(String msgId) throws WxErrorException;

	SenderResult sendAllGetStatus(String msgId) throws WxErrorException;

	WxError templateSetIndustry(String industry1, String industry2) throws WxErrorException;

	IndustryResult templateGetIndustry() throws WxErrorException;

	TemplateResult templateGetId(String templateIdShort)throws WxErrorException;

	TemplateListResult templateGetList()throws WxErrorException;

	WxError templateDelete(String templateId)throws WxErrorException;

	TemplateSenderResult templateSend(TemplateSender sender)throws WxErrorException;

	@Deprecated
    InvokePay unifiedOrder(PayOrderInfo order, String notifyUrl, String openid) throws WxErrorException;

	WxError addKfAccount(KfAccount account) throws WxErrorException;

	WxError updateKfAccount(KfAccount account) throws WxErrorException;

	WxError deleteKfAccount(KfAccount account) throws WxErrorException;

	WxError updateKfHeadImage(String kfAccount, File file) throws WxErrorException;

	KfAccountListResult getAllKfAccount() throws WxErrorException;

	WxError sendMessageByKf(KfSender sender) throws WxErrorException;

	String get(String url, Map params) throws WxErrorException;

	String post(String url, String params) throws WxErrorException;

	 T execute(RequestExecutor executor, String uri, E data) throws WxErrorException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy