hxnodejs-steam-webapi

Externs for the steam-webapi NPM module
https://github.com/proletariatgames/hxnodejs-steam-webapi

To install, run:

haxelib install hxnodejs-steam-webapi 0.6.2 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe/hxnodejs externs for the steam-webapi npm library

Tested using steam-webapi version 0.6.5

Example:

import js.npm.Steam;

Steam.key = "YOUR API KEY";

Steam.ready(function(err) {
    if (err != null) { trace(err); return; }

    var steam = new Steam();

    // Retrieve the steam ID from a steam username/communityID 
    steam.resolveVanityURL({vanityurl:'jonbo'}, function(err, data) {
        trace(data);
        // data -> { steamid: '76561197968620915', success: 1 } 
 
        // Get the Player's TF2 Backpack items 
        data.gameid = Steam.TF2;
 
        // getPlayerItems requires { gameid, steamid } 
        steam.getPlayerItems(data, function (err, data) {
            trace(data);
            // data -> { status: 1, num_backpack_slots: 1100, items: [...], ...} 
        });
    });
});
Contributors
Proletariat
ProletariatDev1
Version
0.6.2
Published
7 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂