Jump to content


Photo
Question

how to set proxy?

node.js node-steamcommunity

  • Please log in to reply
2 replies to this topic

#1 heredodot

heredodot

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 04 March 2019 - 07:03 PM

how to set proxy for this?

const SteamCommunity = require('steamcommunity');

let community = new SteamCommunity();

var details = {
    "accountName": login,
    "password": pass,
    "twoFactorCode": 2fa
}

await (new Promise((resolve, reject) => {
    community.login(details,function(err,sessionID,cookies,steamguard,oAuthToken){
        console.log(err);
        console.log(sessionID);
        console.log(cookies);
        console.log(steamguard);
        console.log(oAuthToken);
            resolve();
    });
}));



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 04 March 2019 - 07:08 PM

const Request = require('request');
const SteamCommunity = require('steamcommunity');

let community = new SteamCommunity({"request": Request.defaults({"proxy": "http://1.2.3.4"})});


#3 heredodot

heredodot

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 04 March 2019 - 07:32 PM

thank you very much!







Also tagged with one or more of these keywords: Question, node.js, node-steamcommunity

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users