Added setupProfile method

This commit is contained in:
Alexander Corn 2015-07-27 22:55:25 -04:00
parent 3f0db21e02
commit a0b776ca8b

View File

@ -14,6 +14,21 @@ var CommentPrivacyState = {
"3": "commentanyone"
};
SteamCommunity.prototype.setupProfile = function(callback) {
var self = this;
this._myProfile("edit?welcomed=1", null, function(err, response, body) {
if(!callback) {
return;
}
if(err || response.statusCode != 200) {
callback(err || new Error("HTTP error " + response.statusCode));
} else {
callback(null);
}
});
};
SteamCommunity.prototype.editProfile = function(settings, callback) {
var self = this;
this._myProfile("edit", null, function(err, response, body) {