weixin

package
v0.0.0-...-fad388b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenParams

type AccessTokenParams struct {
	AppInfo
	Code string
}

type AccessTokenResult

type AccessTokenResult struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	OpenId       string `json:"openid"`
	UnionId      string `json:"unionid"`
}

func GetAccessToken

func GetAccessToken(params *AccessTokenParams) *AccessTokenResult

type AppInfo

type AppInfo struct {
	AppId  string
	Secret string
}

type UserInfo

type UserInfo struct {
	Id       string `json:"openid"`
	UnionId  string `json:"unionid"`
	Nickname string `json:"nickname"`
	Image    string `json:"headimgurl"`
	Sex      int    `json:"sex"`
	Province string `json:"province"`
	City     string `json:"city"`
	Country  string `json:"country"`
}

func GetUserInfo

func GetUserInfo(id, token string) *UserInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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