Jump to content


Photo
Question

Problem with selling items

node.js node-steamcommunity

  • Please log in to reply
No replies to this topic

#1 qqGasoline

qqGasoline

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 05 August 2018 - 06:42 AM

Hello guys,

 

I want to create steam market bot and now I have a problem with selling items function.

	community.httpRequestPost('https://steamcommunity.com/market/sellitem/',options, (err, response, json) => {
		if(err) {
			console.log(err.toString());
			return;
		}
		console.log(json);
	}, "steamcommunity");

This is how i run it.

var options = {
        url: 'https://steamcommunity.com/market/sellitem/',
        headers: {
            'Origin': 'https://steamcommunity.com',
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'Referer': 'https://steamcommunity.com/my/inventory/',
            'Accept-Encoding': 'gzip, deflate',
            'Accept-Language': 'ru,en-US;q=0.8,en;q=0.6,en-AU;q=0.4'
        },
        form: {
            sessionid: community.getSessionID(),
            appid: 218620,
            contextid: 2,
            assetid: 1893071216426009763,
            amount: 1,
            price: 2000,
        }
    };

And the options (Payday2 crate).

The error I get:

{"success":false,"message":"There was a problem listing your item. Refresh the page and try again."}

 

I can not understand where the problem is, wanna know your opinion about it.

 

Thank you,

Anton

 

 







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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users