Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultProxyURL = "https://open-anubis.ele.me/anubis-webapi/v3/invoke/"
可配置沙箱环境: https://exam-anubis.ele.me/anubis-webapi/v3/invoke/
View Source
const MaxTokenLifeSpan = time.Minute * 8
token刷新接口10分钟有效期,如果10分钟内多次调用, 只有第一次会刷新access_token和refresh_token, 后续调用会返回第一次刷新的access_token和refresh_token。 所以需要保证token缓存有效期在10分钟内。
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCallbackRequest ¶
type CallbackRequest ¶
type FengniaoAppConfig ¶
type FengniaoAppToken ¶
type FengniaoAppTokenKey ¶
type QueryFengniaoAppToken ¶
type QueryFengniaoAppToken struct { FengniaoAppToken ExpireTime int64 RefreshToken string ReExpireTime int64 }
Click to show internal directories.
Click to hide internal directories.