weibo

package
v0.0.0-...-cc65f9c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeiBo

type WeiBo struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	RedirectURL  string `json:"redirect_url"`
	Display      string `json:"display"`
}

WeiBo 微博

func (WeiBo) GetAuthorizeURL

func (wb WeiBo) GetAuthorizeURL(state string) string

GetAuthorizeURL .

func (WeiBo) GetType

func (WeiBo) GetType() string

GetType .

func (WeiBo) GetUser

func (wb WeiBo) GetUser(code string) (*third.User, error)

GetUser 获取weibo用户信息,流程如下: 1 获取code 2 获取操作令牌和用户编号 3 使用操作令牌获取用户信息 4 使用操作令牌获取省市数据 5 合并数据

Jump to

Keyboard shortcuts

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