Jump to content
McKay Development

Recommended Posts

Posted (edited)

Hey guys,

 

im getting always a 400 Error when trying to invite a User to a group.

 

Is there some way to debug it or am i doing something wrong?

var SteamCommunity = require('steamcommunity');
var SteamID = require('SteamID');
var community = new SteamCommunity();

community.login({
    "accountName": "*****",
    "password": "*****",
    "authCode": null,
    "twoFactorCode": null,
    "captcha": null
}, function (err, sessionID, cookies, steamguard) {
    if(!err)
        console.log("Sucessfull :)");
    
    community.inviteUserToGroup("***", new SteamID("****"), function (err) {
        if(err)
            console.log("ERROR: :/ " + err.message);
    });
})

Output:

Sucessfull 
ERROR: :/ HTTP error 400

Thanks for your help.

Edited by good_live

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