Skip to content

Commit

Permalink
Fixed documentation for getInventory callback
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Feb 16, 2017
1 parent 695906d commit 7534e78
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,25 @@ All requests are HTTPS, so your agent should be based on `require('https').Agent
### getInventory(callback)
- `callback` - A function to be called when the request completes.
- `err` - An `Error` object on failure, or `null` on success
- `inventory` - An array containing one object for each item in your OPSkins inventory. Each object has these properties:
- `id` - The OPSkins ID of the item. If you choose to relist this item, this will be its sale ID.
- `name` - The Steam name of the item
- `inspect` - If this item is inspectable, this is its inspect link. May be a steam:// link for CS:GO/TF2, or possibly an HTTP(S) link (e.g. Steam profile backgrounds)
- `type` - The Steam "type" of this item (displayed next to its game icon in the Steam inventory)
- `appid` - The Steam AppID of the game which owns this item
- `contextid` - The Steam context ID which contains this item
- `assetid` - The Steam asset ID of this item (unique within a given app + context combo)
- `classid` - The Steam class ID of this item
- `instanceid` - The Steam instance ID of this item
- `bot_id` - The internal ID of the bot which is holding this item
- `bot_id64` - The 64-bit SteamID of the bot which is holding this item (as a string)
- `added_time` - The Unix timestamp for when this item was added to your OPSkins inventory
- `offer_id` - If there is an outstanding withdrawal trade offer for this item, this is its ID. If not, this is null. If you have requested a trade offer that couldn't be sent immediately but is queued to be sent in the future, this is 0.
- `offer_declined` - If there was previously a withdrawal trade offer for this item but it was declined, this is true.
- `offer_untradable` - If we previously attempted to send a withdrawal trade offer for this item but we were unable to due to a bad trade URL or another trading restriction (e.g. Steam Guard), this is true.
- `requires_support` - If this item has a problem and requires support intervention before it can be withdrawn or relisted, this is true.
- `can_repair` - If this item requires support but you can attempt to self-repair it, this is true. If true, you can use ISupport/RepairItem to try to repair it.
- `data` - An object containing these properties:
- `items` - An array containing one object for each item in your OPSkins inventory. Each object has these properties:
- `id` - The OPSkins ID of the item. If you choose to relist this item, this will be its sale ID.
- `name` - The Steam name of the item
- `inspect` - If this item is inspectable, this is its inspect link. May be a steam:// link for CS:GO/TF2, or possibly an HTTP(S) link (e.g. Steam profile backgrounds)
- `type` - The Steam "type" of this item (displayed next to its game icon in the Steam inventory)
- `appid` - The Steam AppID of the game which owns this item
- `contextid` - The Steam context ID which contains this item
- `assetid` - The Steam asset ID of this item (unique within a given app + context combo)
- `classid` - The Steam class ID of this item
- `instanceid` - The Steam instance ID of this item
- `bot_id` - The internal ID of the bot which is holding this item
- `bot_id64` - The 64-bit SteamID of the bot which is holding this item (as a string)
- `added_time` - The Unix timestamp for when this item was added to your OPSkins inventory
- `offer_id` - If there is an outstanding withdrawal trade offer for this item, this is its ID. If not, this is null. If you have requested a trade offer that couldn't be sent immediately but is queued to be sent in the future, this is 0.
- `offer_declined` - If there was previously a withdrawal trade offer for this item but it was declined, this is true.
- `offer_untradable` - If we previously attempted to send a withdrawal trade offer for this item but we were unable to due to a bad trade URL or another trading restriction (e.g. Steam Guard), this is true.
- `requires_support` - If this item has a problem and requires support intervention before it can be withdrawn or relisted, this is true.
- `can_repair` - If this item requires support but you can attempt to self-repair it, this is true. If true, you can use ISupport/RepairItem to try to repair it.

**v1.2.0 or later is required to use this method**

Expand Down

0 comments on commit 7534e78

Please sign in to comment.