Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenResponse ¶
type AuthTokenResponse struct { Code int `json:"code"` Msg string `json:"msg"` Data struct { TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` AccessToken string `json:"access_token"` } `json:"data"` }
=== Auth token ===
type AuthenticationService ¶
type AuthenticationService struct { BaseURl string FabricID string AppSecret string MerchantID string PrivateKeyPEM string ApplyFabricTokenService *ApplyFabricToken.ApplyFabricTokenService }
func NewAuthenticationService ¶
func NewAuthenticationService(baseURL, fabricID, appSecret, merchantID, token, privateKeyPEM string, applyFabricTokenService *ApplyFabricToken.ApplyFabricTokenService) *AuthenticationService
func (*AuthenticationService) AuthToken ¶
func (at *AuthenticationService) AuthToken(appToken string) (string, error)
func (*AuthenticationService) RequestAuthToken ¶
func (at *AuthenticationService) RequestAuthToken(fabricTokenResponse string, appToken string) (*AuthTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.