User:Ath/WebAPI Examples

From Team Fortress Wiki
< User:Ath
Revision as of 23:16, 13 February 2011 by Ath (talk | contribs) (Minor changes as per suggestions)
Jump to: navigation, search

This page is intended as a quick reference for working with the WebAPI. As such, it is intended to provide a basic explanation of how to understand and work with certain fields, not act as a tutorial.

GetPlayerItems

inventory

Contains a binary token encoded in denary form. The first 16 least significant bits denote an item's position within the backpack, the following 16 bits indicate which classes an item is currently equipped to. The first two most significant bits are currently unused.

contained_item

Contains a sub-array with the id, defindex and quality of a giftwrapped item.

attributes

Has a variable number of sub-arrays containing an attribute definition index and values. See the list for a complete overview of all attributes.

GetSchema

proper_name

If true, indicates the presence of a language-specific prefix such as "The" when an item's quality is Unique; ignored on non-Unique qualities.