public class OpenApiDecodeService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenApiDecodeService.BaseSuccessResponse<T> |
class |
OpenApiDecodeService.WxAppLoginForm
示例参数
|
static class |
OpenApiDecodeService.WxAppLoginResponse
示例接口返回包装类
|
class |
OpenApiDecodeService.WxPubBuildAuthorizationUrlForm |
class |
OpenApiDecodeService.WxPubExchangeAuthCodeToUserForm |
class |
OpenApiDecodeService.WxPubGetJsTicketForm |
static class |
OpenApiDecodeService.WxPubSuccessResponse |
| Constructor and Description |
|---|
OpenApiDecodeService(org.springframework.web.client.RestTemplate restTemplate,
String host) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteForResult(String requestUrl,
String query) |
protected <T> T |
getForResult(String requestUrl,
String query,
Class<T> responseType) |
protected String |
getHostRequestUrl(String url,
String query) |
protected <E> E |
mapToObject(Map<String,Object> map,
Class<E> beanClass) |
protected MapOpenApiParams<String,Object> |
objectToMap(Object obj) |
protected OpenApiParamsVo |
openApiParams(String appid,
String appSecret,
List<OpenApiParams> queryParams,
String requestUrl) |
protected OpenApiParamsVo |
openApiParams(String appid,
String appSecret,
OpenApiParams queryParam,
String requestUrl) |
protected <T> T |
postFilesForResult(String requestUrl,
String query,
Object requestData,
Class<T> responseType) |
protected <T> T |
postForResult(String requestUrl,
String query,
Object requestData,
Class<T> responseType) |
protected void |
putForResult(String requestUrl,
String query,
Object requestData) |
OpenApiDecodeService.BaseSuccessResponse<Integer> |
sendWxMaSubscribeMessage(String appid,
String appSecret,
String wxAppId,
String templateId,
String toUser,
String page,
List<WxMessageData> data)
发送小程序订阅消息
|
OpenApiDecodeService.BaseSuccessResponse<Boolean> |
sendWxMpSubscribeMessage(String appid,
String appSecret,
String wxAppId,
String templateId,
String toUser,
String url,
String scene,
String title,
String contentValue,
String contentColor,
WxMpSubscribeMsgForm.MiniApp miniProgram)
发送公众号订阅消息
|
protected String |
signParams(String needSignParamString,
String requestUrl,
String appSecret) |
OpenApiDecodeService.WxAppLoginResponse |
wxAppLogin(String appid,
String appSecret,
String wxAppId,
String code)
示例接口调用 小程序登录code换取openid
|
OpenApiDecodeService.WxPubSuccessResponse |
wxpubBuildAuthorizationUrl(String appid,
String appSecret,
String wxAppId,
String redirectURI,
String scope,
String state)
公众号获取授权验证url
|
cn.watsontech.webhelper.common.vo.WxAuthorizeUserVo |
wxpubExchangeAuthCodeToUserInfo(String appid,
String appSecret,
String wxAppId,
String code)
公众号授权码换取用户信息
|
Map |
wxpubGetJsTickets(String appid,
String appSecret,
String wxAppId,
String url)
公众号获取授权验证url
|
public OpenApiDecodeService(org.springframework.web.client.RestTemplate restTemplate,
String host)
public OpenApiDecodeService.WxAppLoginResponse wxAppLogin(String appid, String appSecret, String wxAppId, String code)
wxAppId - 登录appidcode - 登录codepublic OpenApiDecodeService.WxPubSuccessResponse wxpubBuildAuthorizationUrl(String appid, String appSecret, String wxAppId, String redirectURI, String scope, String state)
public Map wxpubGetJsTickets(String appid, String appSecret, String wxAppId, String url)
public cn.watsontech.webhelper.common.vo.WxAuthorizeUserVo wxpubExchangeAuthCodeToUserInfo(String appid, String appSecret, String wxAppId, String code)
public OpenApiDecodeService.BaseSuccessResponse<Integer> sendWxMaSubscribeMessage(String appid, String appSecret, String wxAppId, String templateId, String toUser, String page, List<WxMessageData> data)
public OpenApiDecodeService.BaseSuccessResponse<Boolean> sendWxMpSubscribeMessage(String appid, String appSecret, String wxAppId, String templateId, String toUser, String url, String scene, String title, String contentValue, String contentColor, WxMpSubscribeMsgForm.MiniApp miniProgram)
protected <T> T postFilesForResult(String requestUrl, String query, Object requestData, Class<T> responseType)
protected <T> T postForResult(String requestUrl, String query, Object requestData, Class<T> responseType)
protected OpenApiParamsVo openApiParams(String appid, String appSecret, OpenApiParams queryParam, String requestUrl)
protected OpenApiParamsVo openApiParams(String appid, String appSecret, List<OpenApiParams> queryParams, String requestUrl)
protected String signParams(String needSignParamString, String requestUrl, String appSecret)
protected MapOpenApiParams<String,Object> objectToMap(Object obj)
Copyright © 2021. All rights reserved.