Neurological Phenomenon Multiplexer

    node-steam-url-load

    0.0.6 • Public • Published

    node-steam-url-load


    Installation

    npm install node-steam-url-load --save
    

    Usage

    Instantiate a SteamAuthLoad object...

    var SteamAuthLoad = require('node-steam-url-load');
    var UrlLoad = new SteamAuthLoad();
     
    UrlLoad.login({
        account_name: config.username,
        password: config.password,
        two_factor_code: config.twoFactorCode
    }, function(error, session, cookie, steamguard, oauthToken) {
        if (error) {
            console.log(error);
            return;
        }
        // Sending GET request
        UrlLoad.loadPage(url, 'get', function(result) {
            console.log(JSON.stringify(result)); 
        });
        // Sending POST request
        UrlLoad.loadPage(url, 'post', function(result) {
            console.log(JSON.stringify(result)); 
        });
    });
     

    Important

    Save your cookie to a file and use them again during the next login, or else the 7 days warning will always occur and you won't be able to buy any items off the market.

    • Ignore for now. Not sure if it's causing the problem.

    License

    The MIT License (MIT)

    Copyright (c) 2015 Shaun

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Install

    npm i node-steam-url-load

    DownloadsWeekly Downloads

    3

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • avatar