public class JwThirdAPI extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
send_message_url |
| 构造器和说明 |
|---|
JwThirdAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ApiAuthorizerTokenRet |
apiAuthorizerToken(ApiAuthorizerToken apiAuthorizerToken,
String component_access_token)
4、获取(刷新)授权公众号的令牌
|
static ApiGetAuthorizerRet |
apiGetAuthorizerInfo(ApiGetAuthorizer apiGetAuthorizer,
String component_access_token)
5、获取授权方的账户信息
|
static AuthorizerOptionRet |
apiGetAuthorizerOption(AuthorizerOption authorizerOption,
String component_access_token)
6、获取授权方的选项设置信息
|
static AuthorizerSetOptionRet |
apiSetAuthorizerOption(AuthorizerSetOption authorizerSetOption,
String component_access_token)
7、设置授权方的选项信息
|
static String |
getAccessToken(ApiComponentToken apiComponentToken)
1、获取第三方平台access_token
|
static ReOpenAccessToken |
getAccessTokenByCode(String appid,
String code,
String grant_type,
String component_appid,
String component_access_token)
获取第三方平台access_token
|
static net.sf.json.JSONObject |
getApiQueryAuthInfo(String component_appid,
String authorization_code,
String component_access_token)
3、使用授权码换取公众号的授权信息
|
static String |
getPreAuthCode(String component_appid,
String component_access_token)
2、获取预授权码
|
static void |
main(String[] args) |
static String |
sendMessage(Map<String,Object> obj,
String ACCESS_TOKEN)
发送客服消息
|
public static String send_message_url
public static String getAccessToken(ApiComponentToken apiComponentToken) throws WexinReqException
appid - appscret - WexinReqExceptionpublic static String getPreAuthCode(String component_appid, String component_access_token) throws WexinReqException
appid - appscret - WexinReqExceptionpublic static net.sf.json.JSONObject getApiQueryAuthInfo(String component_appid, String authorization_code, String component_access_token) throws WexinReqException
appid - appscret - WexinReqExceptionpublic static ApiAuthorizerTokenRet apiAuthorizerToken(ApiAuthorizerToken apiAuthorizerToken, String component_access_token) throws WexinReqException
apiAuthorizerToken - component_access_token - WexinReqExceptionpublic static ApiGetAuthorizerRet apiGetAuthorizerInfo(ApiGetAuthorizer apiGetAuthorizer, String component_access_token) throws WexinReqException
public static AuthorizerOptionRet apiGetAuthorizerOption(AuthorizerOption authorizerOption, String component_access_token) throws WexinReqException
public static AuthorizerSetOptionRet apiSetAuthorizerOption(AuthorizerSetOption authorizerSetOption, String component_access_token) throws WexinReqException
public static ReOpenAccessToken getAccessTokenByCode(String appid, String code, String grant_type, String component_appid, String component_access_token) throws WexinReqException
appid - appscret - WexinReqExceptionpublic static String sendMessage(Map<String,Object> obj, String ACCESS_TOKEN)
obj - ACCESS_TOKEN - public static void main(String[] args)
Copyright © 2022. All rights reserved.