public class WxOpenFastMaServiceImpl extends WxMaServiceImpl implements WxOpenFastMaService
GSONOPEN_ADD_CATEGORY, OPEN_API_WXA_QUERYNICKNAME, OPEN_CHECK_WX_VERIFY_NICKNAME, OPEN_COMPONENT_REBIND_ADMIN, OPEN_DELETE_CATEGORY, OPEN_GET_ACCOUNT_BASIC_INFO, OPEN_GET_ALL_CATEGORIES, OPEN_GET_CATEGORY, OPEN_MODIFY_CATEGORY, OPEN_MODIFY_HEADIMAGE, OPEN_MODIFY_SIGNATURE, OPEN_SET_NICKNAMEGET_ACCESS_TOKEN_URL, GET_PAID_UNION_ID_URL, JSCODE_TO_SESSION_URL| 构造器和说明 |
|---|
WxOpenFastMaServiceImpl(WxOpenComponentService wxOpenComponentService,
String appId,
WxMaConfig wxMaConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
WxOpenResult |
addCategory(List<WxFastMaCategory> categoryList)
8.2添加类目
|
WxFastMaCheckNickameResult |
checkWxVerifyNickname(String nickname)
4.
|
WxOpenResult |
componentRebindAdmin(String taskid)
7.3 管理员换绑
|
WxOpenResult |
deleteCategory(int first,
int second)
8.3删除类目
|
String |
getAccessToken(boolean forceRefresh) |
WxFastMaAccountBasicInfoResult |
getAccountBasicInfo()
1.获取小程序的信息
|
String |
getAllCategories()
8.1 获取账号可以设置的所有类目
因为不同类目含有特定字段
目前没有完整的类目信息数据
为保证兼容性,放弃将response转换为实体
|
WxFastMaBeenSetCategoryResult |
getCategory()
8.4获取账号已经设置的所有类目
|
WxMaConfig |
getWxMaConfig() |
WxOpenResult |
modifyCategory(WxFastMaCategory category)
8.5修改类目
|
WxOpenResult |
modifyHeadImage(String headImgMediaId,
float x1,
float y1,
float x2,
float y2)
5.修改头像
图片格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过2M
注:实际头像始终为正方形
|
WxOpenResult |
modifySignature(String signature)
6.修改功能介绍
|
WxFastMaQueryNicknameStatusResult |
querySetNicknameStatus(String auditId)
3 小程序改名审核状态查询
|
WxFastMaSetNickameResult |
setNickname(String nickname,
String idCard,
String license,
String namingOtherStuff1,
String namingOtherStuff2)
2.小程序名称设置及改名
若接口未返回audit_id,说明名称已直接设置成功,无需审核;若返回audit_id则名称正在审核中。
|
checkSignature, execute, get, getAccessToken, getAnalysisService, getCodeService, getJsapiService, getMediaService, getMsgService, getPaidUnionId, getPluginService, getQrcodeService, getRequestHttp, getRequestHttpClient, getRequestHttpProxy, getRequestType, getRunService, getSecCheckService, getSettingService, getShareService, getTemplateService, getUserService, initHttp, jsCode2SessionInfo, post, setMaxRetryTimes, setRetrySleepMillis, setWxMaConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSignature, execute, get, getAccessToken, getAnalysisService, getCodeService, getJsapiService, getMediaService, getMsgService, getPaidUnionId, getPluginService, getQrcodeService, getRequestHttp, getRunService, getSecCheckService, getSettingService, getShareService, getTemplateService, getUserService, initHttp, jsCode2SessionInfo, post, setMaxRetryTimes, setRetrySleepMillis, setWxMaConfigpublic WxOpenFastMaServiceImpl(WxOpenComponentService wxOpenComponentService, String appId, WxMaConfig wxMaConfig)
public WxMaConfig getWxMaConfig()
getWxMaConfig 在接口中 WxMaServicegetWxMaConfig 在类中 WxMaServiceImplpublic String getAccessToken(boolean forceRefresh) throws WxErrorException
getAccessToken 在接口中 WxMaServicegetAccessToken 在类中 WxMaServiceImplWxErrorExceptionpublic WxFastMaAccountBasicInfoResult getAccountBasicInfo() throws WxErrorException
WxOpenFastMaServicegetAccountBasicInfo 在接口中 WxOpenFastMaServiceWxErrorException - .public WxFastMaSetNickameResult setNickname(String nickname, String idCard, String license, String namingOtherStuff1, String namingOtherStuff2) throws WxErrorException
WxOpenFastMaService
若接口未返回audit_id,说明名称已直接设置成功,无需审核;若返回audit_id则名称正在审核中。
setNickname 在接口中 WxOpenFastMaServicenickname - 昵称idCard - 身份证照片–临时素材mediaid(个人号必填)license - 组织机构代码证或营业执照–临时素材mediaid(组织号必填)namingOtherStuff1 - 其他证明材料---临时素材 mediaidnamingOtherStuff2 - 其他证明材料---临时素材 mediaidWxErrorException - .public WxFastMaQueryNicknameStatusResult querySetNicknameStatus(String auditId) throws WxErrorException
WxOpenFastMaServicequerySetNicknameStatus 在接口中 WxOpenFastMaServiceauditId - 审核单idWxErrorException - .public WxFastMaCheckNickameResult checkWxVerifyNickname(String nickname) throws WxErrorException
WxOpenFastMaServicecheckWxVerifyNickname 在接口中 WxOpenFastMaServicenickname - 名称WxErrorException - .public WxOpenResult modifyHeadImage(String headImgMediaId, float x1, float y1, float x2, float y2) throws WxErrorException
WxOpenFastMaService
图片格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过2M
注:实际头像始终为正方形
modifyHeadImage 在接口中 WxOpenFastMaServiceheadImgMediaId - 头像素材media_idx1 - 裁剪框左上角x坐标(取值范围:[0, 1])y1 - 裁剪框左上角y坐标(取值范围:[0, 1])x2 - 裁剪框右下角x坐标(取值范围:[0, 1])y2 - 裁剪框右下角y坐标(取值范围:[0, 1])WxErrorException - .public WxOpenResult modifySignature(String signature) throws WxErrorException
WxOpenFastMaServicemodifySignature 在接口中 WxOpenFastMaServicesignature - 简介:4-120字WxErrorException - .public WxOpenResult componentRebindAdmin(String taskid) throws WxErrorException
WxOpenFastMaServicecomponentRebindAdmin 在接口中 WxOpenFastMaServicetaskid - 换绑管理员任务序列号(公众平台最终点击提交回跳到第三方平台时携带)WxErrorException - .public String getAllCategories() throws WxErrorException
WxOpenFastMaService
因为不同类目含有特定字段
目前没有完整的类目信息数据
为保证兼容性,放弃将response转换为实体
getAllCategories 在接口中 WxOpenFastMaServiceWxErrorException - .public WxOpenResult addCategory(List<WxFastMaCategory> categoryList) throws WxErrorException
WxOpenFastMaServiceaddCategory 在接口中 WxOpenFastMaServicecategoryList - 类目列表WxErrorException - .public WxOpenResult deleteCategory(int first, int second) throws WxErrorException
WxOpenFastMaServicedeleteCategory 在接口中 WxOpenFastMaServicefirst - 一级类目IDsecond - 二级类目IDWxErrorException - .public WxFastMaBeenSetCategoryResult getCategory() throws WxErrorException
WxOpenFastMaServicegetCategory 在接口中 WxOpenFastMaServiceWxErrorException - .public WxOpenResult modifyCategory(WxFastMaCategory category) throws WxErrorException
WxOpenFastMaServicemodifyCategory 在接口中 WxOpenFastMaServicecategory - 实体WxErrorException - .Copyright © 2019. All rights reserved.