weibo

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"`
	Id          string `json:"uid"`
}

func GetAccessToken

func GetAccessToken(params *AccessTokenParams) *AccessTokenResult

type AppInfo

type AppInfo struct {
	AppId       string
	Secret      string
	RedirectUrl string
}

type UserInfo

type UserInfo struct {
	Id    string `json:"idstr"`
	Name  string `json:"name"`
	Image string `json:"profile_image_url"`
	Sex   string `json:gender`
}

func GetUserInfo

func GetUserInfo(id, token string) *UserInfo

Jump to

Keyboard shortcuts

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