public interface WxOpenComponentService
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ADD_TO_TEMPLATE_URL |
static String |
API_AUTHORIZER_TOKEN_URL |
static String |
API_COMPONENT_TOKEN_URL |
static String |
API_CREATE_PREAUTHCODE_URL |
static String |
API_GET_AUTHORIZER_INFO_URL |
static String |
API_GET_AUTHORIZER_OPTION_URL |
static String |
API_QUERY_AUTH_URL |
static String |
API_SET_AUTHORIZER_OPTION_URL |
static String |
COMPONENT_LOGIN_PAGE_URL |
static String |
COMPONENT_MOBILE_LOGIN_PAGE_URL
手机端打开授权链接
|
static String |
CONNECT_OAUTH2_AUTHORIZE_URL |
static String |
DELETE_TEMPLATE_URL |
static String |
GET_TEMPLATE_DRAFT_LIST_URL
代小程序实现业务
小程序代码模版库管理:https://open.weixin.qq.com/cgi-bin/showdocument?
|
static String |
GET_TEMPLATE_LIST_URL |
static String |
MINIAPP_JSCODE_2_SESSION |
static String |
OAUTH2_ACCESS_TOKEN_URL
用code换取oauth2的access token
|
static String |
OAUTH2_REFRESH_TOKEN_URL
刷新oauth2的access token
|
static final String COMPONENT_MOBILE_LOGIN_PAGE_URL
static final String OAUTH2_ACCESS_TOKEN_URL
static final String OAUTH2_REFRESH_TOKEN_URL
static final String GET_TEMPLATE_DRAFT_LIST_URL
小程序代码模版库管理:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1506504150_nMMh6&token=&lang=zh_CN access_token 为 component_access_token
WxMpService getWxMpServiceByAppid(String appid)
WxOpenMaService getWxMaServiceByAppid(String appid)
appid - WxOpenConfigStorage getWxOpenConfigStorage()
String getComponentAccessToken(boolean forceRefresh) throws WxErrorException
WxErrorExceptionString getPreAuthUrl(String redirectURI) throws WxErrorException
WxErrorExceptionString getPreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException
WxErrorExceptionString getMobilePreAuthUrl(String redirectURI) throws WxErrorException
redirectURI - WxErrorExceptionString getMobilePreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException
redirectURI - authType - bizAppid - WxErrorExceptionString route(WxOpenXmlMessage wxMessage) throws WxErrorException
WxErrorExceptionWxOpenQueryAuthResult getQueryAuth(String authorizationCode) throws WxErrorException
WxErrorExceptionWxOpenAuthorizerInfoResult getAuthorizerInfo(String authorizerAppid) throws WxErrorException
WxErrorExceptionWxOpenAuthorizerOptionResult getAuthorizerOption(String authorizerAppid, String optionName) throws WxErrorException
WxErrorExceptionvoid setAuthorizerOption(String authorizerAppid, String optionName, String optionValue) throws WxErrorException
WxErrorExceptionString getAuthorizerAccessToken(String appid, boolean forceRefresh) throws WxErrorException
WxErrorExceptionWxMpOAuth2AccessToken oauth2getAccessToken(String appid, String code) throws WxErrorException
WxErrorExceptionboolean checkSignature(String appId, String timestamp, String nonce, String signature)
WxMpOAuth2AccessToken oauth2refreshAccessToken(String appid, String refreshToken) throws WxErrorException
WxErrorExceptionString oauth2buildAuthorizationUrl(String appid, String redirectURI, String scope, String state)
WxMaJscode2SessionResult miniappJscode2Session(String appId, String jsCode) throws WxErrorException
WxErrorExceptionList<WxOpenMaCodeTemplate> getTemplateDraftList() throws WxErrorException
WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档List<WxOpenMaCodeTemplate> getTemplateList() throws WxErrorException
WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档void addToTemplate(long draftId)
throws WxErrorException
draftId - 草稿ID,本字段可通过“获取草稿箱内的所有临时代码草稿”接口获得WxErrorException - 操作失败时抛出,具体错误码请看此接口的注释文档getTemplateDraftList()void deleteTemplate(long templateId)
throws WxErrorException
templateId - 要删除的模版IDWxErrorException - 操作失败时抛出,具体错误码请看此接口的注释文档getTemplateList()Copyright © 2018. All rights reserved.