Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDeviceCodeRes ¶
type GetDeviceCodeRes struct { DeviceCode string `json:"device_code"` UserCode string `json:"user_code"` VerificationURL string `json:"verification_url"` QrcodeURL string `json:"qrcode_url"` ExpiresIn int64 `json:"expires_in"` Interval int64 `json:"interval"` }
func GetDeviceCode ¶
func GetDeviceCode(appKey, scope string) (*GetDeviceCodeRes, error)
获取登录使用 code 二维码
type GetDeviceTokenRes ¶
type GetDeviceTokenRes struct { ExpiresIn int32 `json:"expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` AccessToken string `json:"access_token,omitempty"` SessionSecret string `json:"session_secret,omitempty"` SessionKey string `json:"session_key,omitempty"` Scope string `json:"scope,omitempty"` }
func GetDeviceToken ¶
func GetDeviceToken(appKey, secretKey, code string) (*GetDeviceTokenRes, error)
通过 code 获取用户身份 token
type GetQuotaRes ¶
type GetUserInfoRes ¶
type GetUserInfoRes struct { Uk int `json:"uk,omitempty"` RequestId string `json:"request_id,omitempty"` AvatarUrl string `json:"avatar_url,omitempty"` BaiduName string `json:"baidu_name,omitempty"` NetdiskName string `json:"netdisk_name,omitempty"` VipType int32 `json:"vip_type,omitempty"` }
func (GetUserInfoRes) GetVipName ¶
func (u GetUserInfoRes) GetVipName() string
Click to show internal directories.
Click to hide internal directories.