pricing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TSMTokenURL = "https://auth.tradeskillmaster.com/oauth2/token" //nolint:gosec // token url
	TSMClientID = "c260f00d-1071-409a-992f-dda2e5498536"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiKey string, baseURL string) (*Client, error)

func (*Client) WriteAHPricesToFile

func (c *Client) WriteAHPricesToFile(id int) (string, error)

WriteAHPricesToFile queries the TSM API for pricing data for a given AH and dumps the response to a file.

type Price

type Price struct {
	AuctionHouseID int  `json:"auctionHouseId"`
	ItemID         int  `json:"itemId"`
	PetSpeciesID   *int `json:"petSpeciesId"`
	MinBuyout      int  `json:"minBuyout"`
	Quantity       int  `json:"quantity"`
	MarketValue    int  `json:"marketValue"`
	Historical     int  `json:"historical"`
	NumAuctions    int  `json:"numAuctions"`
}

type TSMTokenSource

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

func (TSMTokenSource) Token

func (ts TSMTokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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