Jump to content
McKay Development

Recommended Posts

Hi there

 

 

At first thnx for the awesome wrapper around the steam trade offers!

 

I have encountered an issue with creating tradeoffers, accepting works like a charm!

 

When i try to create and offer, add items to it and send, i don't receive any feedback err and status are undefined.

If i log the tradeoffer all is set, what am i missing?

 

Thnx in advance!

steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
	if (err) {
		console.log("Steam login fail: " + err.message);
		process.exit(1);
	}

	fs.writeFile('steamguard.txt', steamguard);

	console.log("Logged into Steam");

	manager.setCookies(cookies, function(err) {
	if (err) {
		console.log(err);
		process.exit(1); // Fatal error since we couldn't get our API key
		return;
	}

	console.log("Got API key: " + manager.apiKey);

        // var inventory = manager.loadUserInventory("*****", 730, 2);
        // console.log(inventory);

        var offer = manager.createOffer("****");
        offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "6582251698"});
        offer.send(function(err, status) {
            if (err) {
                console.log("send" + err);
            } else {
                console.log("Offer #" + offer.id + " " + status);
            }
            console.log(status);
            console.log('hierheirieirh');
        });
	});

    console.log('testtest');

    // Checks and accepts confirmations every 30 seconds
    steam.startConfirmationChecker(30000, config.identity_secret);
});
Link to comment
Share on other sites

  • 2 weeks later...

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...