Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResp ¶ added in v1.8.0
type AccessTokenResp struct {
Data struct {
AccessToken string `json:"access_token"`
Description string `json:"description"`
ErrorCode int `json:"error_code"`
ExpiresIn string `json:"expires_in"`
OpenId string `json:"open_id"`
RefreshExpiresIn string `json:"refresh_expires_in"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
} `json:"data"`
Message string `json:"message"`
Extra struct {
Logid string `json:"logid"`
Now int64 `json:"now"`
} `json:"extra"`
}
type Douyin ¶
type Douyin struct {
// contains filtered or unexported fields
}
func (*Douyin) GetAssessToken ¶ added in v1.8.0
func (douyin *Douyin) GetAssessToken(code string) (*AccessTokenResp, error)
GetAssessToken 获取授权码 参见文档 https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/get-access-token
type Option ¶
type Option func(*Options)
func WithClientKey ¶ added in v1.8.0
func WithClientSecret ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.