Versions in this module Expand all Collapse all v1 v1.0.13 Nov 14, 2023 Changes in this version + const DDK_AUTH_URL + const H5 + const KTT_AUTH_URL + const LOGISTIC_AUTH_URL + const SHOP_AUTH_H5_URL + const SHOP_AUTH_WEB_URL + const WEB + func URL(clt *core.SDKClient, req *URLRequest) string + type AuthType int + const AuthType_DDK + const AuthType_KTT + const AuthType_LOGISTIC + const AuthType_SHOP_H5 + const AuthType_SHOP_WEB + type Token struct + AccessToken string + ExpiresAt int64 + ExpiresIn int64 + OwnerID model.Uint64 + OwnerName string + R1ExpiresAt int64 + R1ExpiresIn int64 + R2ExpiresAt int64 + R2ExpiresIn int64 + RefreshToken string + RefreshTokenExpiresAt int64 + RefreshTokenExpiresIn int64 + Scope []string + W1ExpiresAt int64 + W1ExpiresIn int64 + W2ExpiresAt int64 + W2ExpiresIn int64 + func TokenCreate(clt *core.SDKClient, code string) (*Token, error) + func TokenRefresh(clt *core.SDKClient, refreshToken string) (*Token, error) + type TokenCreateRequest struct + Code string + func (r TokenCreateRequest) GetType() string + type TokenCreateResponse struct + Response *Token + type TokenRefreshRequest struct + RefreshToken string + func (r TokenRefreshRequest) GetType() string + type TokenRefreshResponse struct + Data *Token + type URLRequest struct + AuthType AuthType + RedirectURI string + State string + View string v1.0.12-relses Nov 14, 2023