Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2016 Changes in this version + const TradeOfferConfirmationMethod_Email + const TradeOfferConfirmationMethod_Invalid + const TradeOfferConfirmationMethod_MobileApp + const TradeOfferState_Accepted + const TradeOfferState_Active + const TradeOfferState_Canceled + const TradeOfferState_CanceledBySecondFactor + const TradeOfferState_Countered + const TradeOfferState_CreatedNeedsConfirmation + const TradeOfferState_Declined + const TradeOfferState_Expired + const TradeOfferState_InEscrow + const TradeOfferState_Invalid + const TradeOfferState_InvalidItems + 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 + 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) (*TradeOfferResult, error) + func (c *Client) GetOfferEscrowDuration(offerId uint64) (*EscrowDuration, error) + func (c *Client) GetOfferWithRetry(offerId uint64, retryCount int, retryDelay time.Duration) (*TradeOfferResult, error) + func (c *Client) GetOffers(getSent bool, getReceived bool, getDescriptions bool, activeOnly bool, ...) (*TradeOffersResult, error) + func (c *Client) GetOffersWithRetry(getSent bool, getReceived bool, getDescriptions bool, activeOnly bool, ...) (*TradeOffersResult, 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) ([]*TradeReceiptItem, error) + func (c *Client) GetTradeReceiptWithRetry(tradeId uint64, retryCount int, retryDelay time.Duration) ([]*TradeReceiptItem, error) + type Description struct + Actions []*inventory.Action + AppId uint32 + BackgroundColor string + ClassId uint64 + Commodity bool + Descriptions inventory.DescriptionLines + IconUrl string + IconUrlLarge 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 SteamError struct + func (e *SteamError) Error() string + type TradeItem struct + Amount uint64 + AppId uint32 + AssetId uint64 + ContextId uint64 + CurrencyId uint64 + type TradeOffer struct + ConfirmationMethod TradeOfferConfirmationMethod + EscrowEndDate uint32 + ExpirationTime uint32 + IsOurOffer bool + Message string + OtherAccountId uint32 + OtherSteamId steamid.SteamId + State TradeOfferState + TimeCreated uint32 + TimeUpdated uint32 + ToGive []*Asset + ToReceive []*Asset + TradeId uint64 + TradeOfferId uint64 + func (t *TradeOffer) UnmarshalJSON(data []byte) error + type TradeOfferConfirmationMethod uint + type TradeOfferResult struct + Descriptions []*Description + Offer *TradeOffer + type TradeOfferState uint + type TradeOffersResult struct + Descriptions []*Description + Received []*TradeOffer + Sent []*TradeOffer + type TradeReceiptItem struct + AppId uint32 + AssetId uint64 + ContextId uint64 + Owner uint64 + Pos uint32