Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
// Id 获取AppId
Id() string
// Token 获取Token
Token() string
// GetAuthorizerList 拉取已授权的账号信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerList.html
GetAuthorizerList() ([]*json2.Json, error)
// GetAuthorizerInfo 获取授权账号详情 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerInfo.html
GetAuthorizerInfo(authorizerAppId string) (*json2.Json, error)
// SetAuthorizerOptionInfo 设置授权方选项信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/setAuthorizerOptionInfo.html
SetAuthorizerOptionInfo(authorizerAccessToken, optionName, optionValue string) (*json2.Json, error)
// GetAuthorizerOptionInfo 获取授权方选项信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerOptionInfo.html
GetAuthorizerOptionInfo(authorizerAccessToken, optionName string) (*json2.Json, error)
// ClearQuota 重置API调用次数 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/clearQuota.html
ClearQuota(appId, accessToken string) (*json2.Json, error)
// GetApiQuota 查询API调用额度 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/getApiQuota.html
GetApiQuota(cgiPath, accessToken string) (*json2.Json, error)
// GetRidInfo 查询rid信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/getRidInfo.html
GetRidInfo(rid, accessToken string) (*json2.Json, error)
// ClearComponentQuotaByAppSecret 使用AppSecret重置第三方平台API调用次数 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/clearComponentQuotaByAppSecret.html
ClearComponentQuotaByAppSecret(appid string) (*json2.Json, error)
// GetTemplatedRaftList 获取草稿箱列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/template-management/getTemplatedRaftList.html
GetTemplatedRaftList() (*json2.Json, error)
// AddToTemplate 将草稿添加到模板库 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/template-management/addToTemplate.html
AddToTemplate(draftId, templateType int64) (*json2.Json, error)
// GetTemplateList 获取模板列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/template-management/getTemplateList.html
GetTemplateList(templateType int64) (*json2.Json, error)
// DeleteTemplate 删除代码模板 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/template-management/deleteTemplate.html
DeleteTemplate(templateId int64) (*json2.Json, error)
// ModifyThirdpartyServerDomain 设置第三方平台服务器域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/domain-mgnt/modifyThirdpartyServerDomain.html
ModifyThirdpartyServerDomain(action, WxaServerDomain string, IsModifyPublishedTogether bool) (*json2.Json, error)
// GetThirdpartyJumpDomainConfirmFile 获取第三方平台业务域名校验文件 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/domain-mgnt/getThirdpartyJumpDomainConfirmFile.html
GetThirdpartyJumpDomainConfirmFile() (js *json2.Json, err error)
// ModifyThirdpartyJumpDomain 设置第三方平台业务域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/thirdparty-management/domain-mgnt/modifyThirdpartyJumpDomain.html
ModifyThirdpartyJumpDomain(action, WxaJumpH5Domain string, IsModifyPublishedTogether bool) (*json2.Json, error)
// BindOpenAccount 绑定开放平台账号 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openplatform-management/bindOpenAccount.html
BindOpenAccount(authorizerAccessToken, openAppid string) (*json2.Json, error)
// UnbindOpenAccount 解除绑定开放平台账号 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openplatform-management/unbindOpenAccount.html
UnbindOpenAccount(authorizerAccessToken, openAppid string) (*json2.Json, error)
// GetOpenAccount 获取开放平台账号 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openplatform-management/getOpenAccount.html
GetOpenAccount(authorizerAccessToken string) (*json2.Json, error)
// CreateOpenAccount 绑定开放平台账号 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openplatform-management/createOpenAccount.html
CreateOpenAccount(authorizerAccessToken string) (*json2.Json, error)
// ThirdpartyCode2Session 小程序登录 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/login/thirdpartyCode2Session.html
ThirdpartyCode2Session(appid, jsCode string) (js *json2.Json, err error)
// GetAccountBasicInfo 获取基本信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getAccountBasicInfo.html
GetAccountBasicInfo(authorizerAccessToken string) (*json2.Json, error)
// GetBindOpenAccount 查询绑定的开放平台账号 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getBindOpenAccount.html
GetBindOpenAccount(authorizerAccessToken string) (*json2.Json, error)
// ModifyServerDomain 配置小程序服务器域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyServerDomain.html
ModifyServerDomain(authorizerAccessToken, action string, requestDomain, wsRequestDomain, uploadDomain, downloadDomain, udpDomain, tcpDomain []string) (*json2.Json, error)
// ModifyJumpDomain 配置小程序业务域名 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyJumpDomain.html
ModifyJumpDomain(authorizerAccessToken, action string, webviewDomain []string) (*json2.Json, error)
// GetSettingCategories 获取已设置的所有类目 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/category-management/getSettingCategories.html
GetSettingCategories(authorizerAccessToken string) (*json2.Json, error)
// GetAllCategoryName 获取类目名称信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/category-management/getAllCategoryName.html
GetAllCategoryName(authorizerAccessToken string) (*json2.Json, error)
// SetPrivacySetting 设置小程序用户隐私保护指引 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-management/setPrivacySetting.html
SetPrivacySetting(authorizerAccessToken string, privacyVer int64, settingList, ownerSettingList, sdkPrivacyInfoList interface{}) (*json2.Json, error)
// GetPrivacySetting 获取小程序用户隐私保护指引 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-management/getPrivacySetting.html
GetPrivacySetting(authorizerAccessToken string, privacyVer int64) (*json2.Json, error)
// UploadPrivacySetting 上传小程序用户隐私保护指引 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-management/uploadPrivacySetting.html
UploadPrivacySetting(authorizerAccessToken string, file *bytes.Buffer) (*json2.Json, error)
// Commit 上传代码并生成体验版 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/commit.html
Commit(authorizerAccessToken, templateId, extJson, userVersion, userDesc string) (*json2.Json, error)
// GetCodePage 获取已上传的代码页面列表 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getCodePage.html
GetCodePage(authorizerAccessToken string) (*json2.Json, error)
// GetTrialQRCode 获取体验版二维码 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getTrialQRCode.html
GetTrialQRCode(authorizerAccessToken, path string) ([]byte, error)
// SubmitAudit 提交代码审核 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/submitAudit.html
SubmitAudit(authorizerAccessToken string, itemList interface{}, feedbackInfo, feedbackStuff, versionDesc string, previewInfo map[string]interface{}, ugcDeclare map[string]interface{}, privacyApiNotUse bool, orderPath string) (*json2.Json, error)
// GetAuditStatus 查询审核单状态 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getAuditStatus.html
GetAuditStatus(authorizerAccessToken string, auditId int64) (*json2.Json, error)
// UndoAudit 撤回代码审核 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/undoAudit.html
UndoAudit(authorizerAccessToken string) (*json2.Json, error)
// Release 发布已通过审核的小程序 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/release.html
Release(authorizerAccessToken string) (*json2.Json, error)
// RevertCodeReleaseGetVersion 小程序版本回退(获取可回退的小程序版本) https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/revertCodeRelease.html
RevertCodeReleaseGetVersion(authorizerAccessToken string) (*json2.Json, error)
// RevertCodeReleaseRollback 小程序版本回退(回滚到指定的小程序版本,默认上一个版本) https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/revertCodeRelease.html
RevertCodeReleaseRollback(authorizerAccessToken, appVersion string) (*json2.Json, error)
// GrayRelease 分阶段发布 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/grayRelease.html
GrayRelease(authorizerAccessToken string, grayPercentage int64, supportDebugerFirst, supportExperiencerFirst bool) (*json2.Json, error)
// GetGrayReleasePlan 获取分阶段发布详情 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getGrayReleasePlan.html
GetGrayReleasePlan(authorizerAccessToken string) (*json2.Json, error)
// SetVisitStatus 设置小程序服务状态 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/setVisitStatus.html
SetVisitStatus(authorizerAccessToken string, action string) (*json2.Json, error)
// RevertGrayRelease 取消分阶段发布 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/revertGrayRelease.html
RevertGrayRelease(authorizerAccessToken string) (*json2.Json, error)
// GetVersionInfo 查询小程序版本信息 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getVersionInfo.html
GetVersionInfo(authorizerAccessToken string) (*json2.Json, error)
// GetLatestAuditStatus 查询最新一次提交的审核状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_latest_auditstatus.html
GetLatestAuditStatus(authorizerAccessToken string) (*json2.Json, error)
// UploadMediaToCodeAudit 上传提审素材 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/uploadMediaToCodeAudit.html
UploadMediaToCodeAudit(authorizerAccessToken string, file *bytes.Buffer) (*json2.Json, error)
// GetCodePrivacyInfo 获取隐私接口检测结果 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/getCodePrivacyInfo.html
GetCodePrivacyInfo(authorizerAccessToken string) (*json2.Json, error)
// StartPushTicket 开启推送ticket https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ticket-token/startPushTicket.html
StartPushTicket() (*json2.Json, error)
// GetPreAuthCode 获取预授权码 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ticket-token/getPreAuthCode.html
GetPreAuthCode() (*json2.Json, error)
// GetAuthorizerAccessToken 获取授权账号调用令牌 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ticket-token/getAuthorizerAccessToken.html
GetAuthorizerAccessToken(authorizerAppId, authorizerRefreshToken string) (*json2.Json, error)
// GetAuthorizerRefreshToken 获取刷新令牌 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ticket-token/getAuthorizerRefreshToken.html
GetAuthorizerRefreshToken(authorizationCode string) (*json2.Json, error)
// GetComponentAccessToken 获取令牌 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/ticket-token/getComponentAccessToken.html
GetComponentAccessToken() (*json2.Json, error)
}
Click to show internal directories.
Click to hide internal directories.