corp

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultProxyURL = "https://qyapi.weixin.qq.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WechatCorpTokenURL                string
	WechatCorpConfigLifeSpan          gokits.Duration
	WechatCorpTokenMaxLifeSpan        gokits.Duration
	WechatCorpTokenExpireCriticalSpan gokits.Duration
	WechatCorpProxyURL                string
}

type QueryWechatCorpToken

type QueryWechatCorpToken struct {
	WechatCorpToken
	ExpireTime int64
}

func (*QueryWechatCorpToken) GetExpireTime

func (q *QueryWechatCorpToken) GetExpireTime() int64

type Response

type Response struct {
	Errcode     int    `json:"errcode"`
	Errmsg      string `json:"errmsg"`
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type WechatCorpConfig

type WechatCorpConfig struct {
	CorpId     string
	CorpSecret string
}

type WechatCorpToken

type WechatCorpToken struct {
	CorpId      string `json:"corpId"`
	AccessToken string `json:"token"`
}

Jump to

Keyboard shortcuts

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