Jump to content
McKay Development

Recommended Posts

Posted

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

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...