-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
21 lines (19 loc) · 751 Bytes
/
Copy pathtest.js
File metadata and controls
21 lines (19 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var getSteamID64 = require('./lib/steamid64');
var username = 'yllanos';
var baseURL = "http://steamcommunity.com/id/";
var URL = baseURL + username + "/?xml=1";
/**
* Test function that requires main script and logs to console some sample SteamID64
* If you want to test a different user, just edit the 'username' variable as needed
* 'result' variable represents the value to be integrated into your application
* @param {string} URL - Full URL profile for specific user.
*/
getSteamID64(URL)
.then(function (result) {
console.log(result);
})
.catch(function (reason) {
console.error("%s; %s", reason.error.message, reason.options.url);
console.log("%j", reason.response.statusCode);
return reason.error.message;
});