Documentation ¶
Index ¶
- Constants
- func GetAccessToken(tk token.Token, d data.D) (access.Token, error)
- func GetAdvService() token.Service
- func GetService() token.Service
- func NewAdvToken(app token.App) token.Token
- func NewToken(app token.App) token.Token
- func RefreshToken(tk token.Token, d data.D) (access.Token, error)
- type AccessToken
- type AcsData
- type AuthAdvertiser
- type AuthInfo
- type Response
Constants ¶
View Source
const ( AccessTokenExpire = 40102 // access token过期 InvalidAccessToken = 40105 //access token错误 )
View Source
const ApiPrefixUrl = "https://ad.oceanengine.com/open_api"
Variables ¶
This section is empty.
Functions ¶
func GetAdvService ¶ added in v1.0.30
func GetService ¶ added in v1.0.28
Types ¶
type AccessToken ¶
type AccessToken struct { AcsToken string `json:"access_token"` RefToken string `json:"refresh_token"` AcsExpireIn int64 `json:"expires_in"` RefExpireIn int64 `json:"refresh_token_expires_in"` }
func (AccessToken) GetAccessToken ¶
func (a AccessToken) GetAccessToken() access.Value
access.Token interface implement
func (AccessToken) GetRefAccessToken ¶
func (a AccessToken) GetRefAccessToken() access.Value
type AcsData ¶
type AcsData struct { AccessToken AdIds []int64 `json:"advertiser_ids,omitempty"` }
type AuthAdvertiser ¶
type AuthInfo ¶
type AuthInfo struct {
Advertisers []AuthAdvertiser `json:"list,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.