From a0b776ca8ba1b3b380a78e30853d9d7834964f60 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 27 Jul 2015 22:55:25 -0400 Subject: [PATCH] Added setupProfile method --- components/profile.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/profile.js b/components/profile.js index a3d6d95..f61fdd1 100644 --- a/components/profile.js +++ b/components/profile.js @@ -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) {