Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2020 Changes in this version + type APIKey string + type Asset struct + Amount uint64 + AppID uint32 + AssetID uint64 + ClassID uint64 + ContextID uint64 + CurrencyID uint64 + InstanceID uint64 + Missing bool + type Client struct + func NewClient(key APIKey, sessionID, steamLogin, steamLoginSecure string) (*Client, error) + func (c *Client) Accept(offerID uint64) error + func (c *Client) AcceptWithRetry(offerID uint64, retryCount int, retryDelay time.Duration) error + func (c *Client) Cancel(offerID uint64) error + func (c *Client) CancelWithRetry(offerID uint64, retryCount int, retryDelay time.Duration) error + func (c *Client) Create(other steamid.SteamID, accessToken string, myItems, theirItems []TradeItem, ...) (uint64, error) + func (c *Client) CreateWithRetry(other steamid.SteamID, accessToken string, myItems, theirItems []TradeItem, ...) (uint64, error) + func (c *Client) Decline(offerID uint64) error + func (c *Client) DeclineWithRetry(offerID uint64, retryCount int, retryDelay time.Duration) error + func (c *Client) GetOffer(offerID uint64) (*Result, error) + func (c *Client) GetOfferEscrowDuration(offerID uint64) (*EscrowDuration, error) + func (c *Client) GetOfferWithRetry(offerID uint64, retryCount int, retryDelay time.Duration) (*Result, error) + func (c *Client) GetOffers(getSent bool, getReceived bool, getDescriptions bool, activeOnly bool, ...) (*MultiResult, error) + func (c *Client) GetOffersWithRetry(getSent bool, getReceived bool, getDescriptions bool, activeOnly bool, ...) (*MultiResult, error) + func (c *Client) GetOwnInventory(contextID uint64, appID uint32) (*inventory.Inventory, error) + func (c *Client) GetOwnInventoryWithRetry(contextID uint64, appID uint32, retryCount int, retryDelay time.Duration) (*inventory.Inventory, error) + func (c *Client) GetPartnerEscrowDuration(other steamid.SteamID, accessToken string) (*EscrowDuration, error) + func (c *Client) GetPartnerInventory(other steamid.SteamID, contextID uint64, appID uint32, offerID uint64) (*inventory.Inventory, error) + func (c *Client) GetPartnerInventoryWithRetry(other steamid.SteamID, contextID uint64, appID uint32, offerID uint64, ...) (*inventory.Inventory, error) + func (c *Client) GetTradeReceipt(tradeID uint64) ([]*ReceiptItem, error) + func (c *Client) GetTradeReceiptWithRetry(tradeID uint64, retryCount int, retryDelay time.Duration) ([]*ReceiptItem, error) + type ConfirmationMethod uint + const ConfirmationMethodEmail + const ConfirmationMethodInvalid + const ConfirmationMethodMobileApp + type Description struct + Actions []*inventory.Action + AppID uint32 + BackgroundColor string + ClassID uint64 + Commodity bool + Descriptions inventory.DescriptionLines + IconLargeURL string + IconURL string + InstanceID uint64 + MarketHashName string + MarketName string + MarketTradableRestriction uint32 + Name string + NameColor string + Tradable bool + Type string + type EscrowDuration struct + DaysMyEscrow uint32 + DaysTheirEscrow uint32 + type MultiResult struct + Descriptions []*Description + Received []*Offer + Sent []*Offer + type Offer struct + ConfirmationMethod ConfirmationMethod + EscrowEndDate uint32 + ExpirationTime uint32 + IsOurOffer bool + Message string + OtherAccountID uint32 + OtherSteamID steamid.SteamID + State State + TimeCreated uint32 + TimeUpdated uint32 + ToGive []*Asset + ToReceive []*Asset + TradeID uint64 + TradeOfferID uint64 + func (t *Offer) UnmarshalJSON(data []byte) error + type ReceiptItem struct + AppID uint32 + AssetID uint64 + ContextID uint64 + Owner uint64 + Pos uint32 + type Result struct + Descriptions []*Description + Offer *Offer + type State uint + const StateAccepted + const StateActive + const StateCanceled + const StateCanceledBySecondFactor + const StateCountered + const StateCreatedNeedsConfirmation + const StateDeclined + const StateExpired + const StateInEscrow + const StateInvalid + const StateInvalidItems + type SteamError struct + func (e *SteamError) Error() string + type TradeItem struct + Amount uint64 + AppID uint32 + AssetID uint64 + ContextID uint64 + CurrencyID uint64