Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenRequest ¶
type AccessTokenRequest struct { model.BaseRequest AppID string Secret string Code string }
func (AccessTokenRequest) GetParams ¶
func (r AccessTokenRequest) GetParams() url.Values
func (AccessTokenRequest) GetScope ¶
func (r AccessTokenRequest) GetScope() string
type AccessTokenResponse ¶
type AccessTokenResponse struct { model.BaseResponse AccessToken string `json:"access_token,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` RefreshTokenExpiresIn int64 `json:"refresh_token_expires_in,omitempty"` OpenID string `json:"open_id,omitempty"` Scopes []string `json:"scopes,omitempty"` }
type AuthorizeRequest ¶
type QrcodeType ¶
type QrcodeType = string
const ( IMG_QrcodeType QrcodeType = "img" PATH_QrcodeType QrcodeType = "path" )
type QrcodeUrlRequest ¶
type QrcodeUrlRequest struct { AuthorizeRequest QrcodeSize int // 二维码大小,最小不小于64,最大不大于1000,默认450。 Type QrcodeType // 返回值类型,可选img和path,选择img会返回二维码图片,选择path会返回二维码内容的地址,开发者可以自己生成二维码 。默认 img 。 Debug bool // 时候开启调试模式,开启后,在用户授权失败时,会在快手APP内显示调试信息,可以根据调试信息来调试.默认false }
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { model.BaseRequest AppID string Secret string RefreshToken string }
func (RefreshTokenRequest) GetParams ¶
func (r RefreshTokenRequest) GetParams() url.Values
func (RefreshTokenRequest) GetScope ¶
func (r RefreshTokenRequest) GetScope() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { model.BaseResponse AccessToken string `json:"access_token,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` RefreshTokenExpiresIn int64 `json:"refresh_token_expires_in,omitempty"` Scopes []string `json:"scopes,omitempty"` }
Click to show internal directories.
Click to hide internal directories.