wecom

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct{}

func NewAccessToken

func NewAccessToken() *AccessToken

func (*AccessToken) GetAccessToken

func (a *AccessToken) GetAccessToken(req *AccessTokenReq) (*AccessTokenResp, error)

GetAccessToken 获取access_token

type AccessTokenReq

type AccessTokenReq struct {
	Corpid     string `json:"corpid"`     // 企业ID
	Corpsecret string `json:"corpsecret"` // 应用的凭证密钥
}

AccessTokenReq 获取access_token

type AccessTokenResp

type AccessTokenResp struct {
	Errcode     int    `json:"errcode"`      // 错误码
	Errmsg      string `json:"errmsg"`       // 错误信息
	AccessToken string `json:"access_token"` // 获取到的凭证
	ExpiresIn   int    `json:"expires_in"`   // 凭证有效时间,单位:秒
}

AccessTokenResp 获取access_token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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