openapi

package
v2.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAPI

type OpenAPI struct {
	// contains filtered or unexported fields
}

OpenAPI openApi管理

func NewOpenAPI

func NewOpenAPI(ctx interface{}) *OpenAPI

NewOpenAPI 实例化

func (*OpenAPI) ClearQuota

func (o *OpenAPI) ClearQuota() error

ClearQuota 重置API调用次数 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/openApi-mgnt/clearQuota.html

func (*OpenAPI) ClearQuotaByAppSecret

func (o *OpenAPI) ClearQuotaByAppSecret() error

ClearQuotaByAppSecret 使用AppSecret重置 API 调用次数 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/openApi-mgnt/clearQuotaByAppSecret.html

func (*OpenAPI) GetAPIQuota

func (o *OpenAPI) GetAPIQuota(params openapi.GetAPIQuotaParams) (quota openapi.APIQuota, err error)

GetAPIQuota 查询API调用额度 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/openApi-mgnt/getApiQuota.html

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL