common

package
v0.0.0-...-8d6dda1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
	// AccessTokenURL code获取access_token
	AccessTokenURL = "https://api.weixin.qq.com/sns/oauth2/access_token"

	// RefreshTokenURL 重新获取access_token
	RefreshTokenURL = "https://api.weixin.qq.com/sns/oauth2/refresh_token"

	// UserInfoURL 通过access_token获取userInfo
	UserInfoURL = "https://api.weixin.qq.com/sns/userinfo"

	// CheckAccessTokenURL 检验授权凭证(access_token)是否有效
	CheckAccessTokenURL = "https://api.weixin.qq.com/sns/auth"

	// JsCode2SessionURL 临时登录凭证校验接口
	JsCode2SessionURL = "https://api.weixin.qq.com/sns/jscode2session"

	// SendRedPackURL 发送现金红包
	SendRedPackURL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack"
)

https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419317853&token=&lang=zh_CN

View Source
const (
	ErrAccessTokenEmpty  = "access token is empty"
	ErrAppIDEmpty        = "appid empty"
	ErrRefreshTokenEmpty = "refresh token is empty"
	ErrOpenIDEmpty       = "openid is empty"
	ErrCertCertEmpty     = "cert path is empty "
)

错误的信息

View Source
const (
	// UnifiedOrderURL 微信统一下单
	UnifiedOrderURL = "https://api.mch.weixin.qq.com/pay/unifiedorder"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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