Daystodiewebapi.getPlayerInventory()

Get the contents of a players inventory

Usage

Hover over inputs/exits for more info.

var Daystodiewebapi = require('machinepack-7daystodiewebapi');


// Get the contents of a players inventory

Daystodiewebapi.getPlayerInventory({

ip: '192.168.0.1',

port: '8082',

steamID: '76561198028175941',

authName: 'csmm',

authToken: 'EOGHZANOIZEAHZFUR93573298539242F3NG',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Server refused the request (usually means server offline)

connectionRefused: function () {

 

},

// Not authorized to do this request

unauthorized: function () {

 

},

// You have entered an invalid steam ID

badSteamID: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

ip required

IP of the server to send a request to

'192.168.0.1'
port required

Port of the server to send a request.

'8082'
steamID required

Steam ID of the player to look up inventory of

'76561198028175941'
authName

Authorization name to send with the request

'csmm'
authToken

Authorization token to send with the request

'EOGHZANOIZEAHZFUR93573298539242F3NG'

Exits

error

An unexpected error occurred.

connectionRefused

Server refused the request (usually means server offline)

unauthorized

Not authorized to do this request

badSteamID

You have entered an invalid steam ID

success

OK.