selling_partner

package
v0.0.0-...-2964868 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenResponse

type AccessTokenResponse struct {
	AccessToken      string `json:"access_token"`
	RefreshToken     string `json:"refresh_token"`
	TokenType        string `json:"token_type"`
	ExpiresIn        int    `json:"expires_in"`
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

type Config

type Config struct {
	ClientID     string //SP-API
	ClientSecret string //SP-API
	RefreshToken string //
	AccessKeyID  string //AWS IAM User Access Key Id
	SecretKey    string //AWS IAM User Secret Key
	Region       string //AWS Region
	RoleArn      string //AWS IAM Role ARN
}

func (Config) IsValid

func (o Config) IsValid() (bool, error)

type SellingPartner

type SellingPartner struct {
	// contains filtered or unexported fields
}

func NewSellingPartner

func NewSellingPartner(cfg *Config) (*SellingPartner, error)

func (*SellingPartner) RefreshCredentials

func (s *SellingPartner) RefreshCredentials() error

func (*SellingPartner) RefreshToken

func (s *SellingPartner) RefreshToken() error

func (*SellingPartner) SignRequest

func (s *SellingPartner) SignRequest(r *http.Request) error

Jump to

Keyboard shortcuts

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