ApplyFabricToken

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyFabricTokenService

type ApplyFabricTokenService struct {
	BaseURL     string
	FabricAppId string
	AppSecret   string
	MerchantId  string
	Client      *http.Client
}

func NewApplyFabricTokenService

func NewApplyFabricTokenService(baseURL, fabricAppId, appSecret, merchantId string, opts ...Option) *ApplyFabricTokenService

=== Applying Fabric Token ===

func (*ApplyFabricTokenService) ApplyFabricToken

func (a *ApplyFabricTokenService) ApplyFabricToken() (string, error)

type Option added in v0.0.5

type Option func(*ApplyFabricTokenService)

func WithClient added in v0.0.5

func WithClient(client *http.Client) Option

type TokenResponse

type TokenResponse struct {
	Token          string `json:"token"`
	EffectiveDate  string `json:"effectiveDate"`
	ExpirationDate string `json:"expirationDate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL