{"size": 652, "ext": "js", "max_stars_repo_path": "node_modules/hipchatter/utils/create_test_user.js", "max_stars_repo_name": "Bobcui001/stf", "max_stars_repo_stars_event_min_datetime": "2016-08-25T15:13:07.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-30T16:38:33.000Z", "max_issues_repo_path": "node_modules/hipchatter/utils/create_test_user.js", "max_issues_repo_name": "tim-thimmaiah/make-it-rain", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/hipchatter/utils/create_test_user.js", "max_forks_repo_name": "tim-thimmaiah/make-it-rain", "max_forks_repo_forks_event_min_datetime": "2016-08-27T14:47:32.000Z", "max_forks_repo_forks_event_max_datetime": "2019-12-23T13:57:00.000Z"}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 43.4666666667, "max_line_length": 96, "alphanum_fraction": 0.713190184}
// Make sure the API Credentials are present
try { var settings = require(__dirname+"/../test/settings.json"); } 
catch (e) { console.error('Create test/settings.json and populate with your credentials.'.red);}

var colors = require('colors')

// Setup hipchatter
var Hipchatter = require(__dirname+'/../hipchatter.js');
var hipchatter = new Hipchatter(settings.apikey, settings.endpoint);

// Create a user to run tests from
hipchatter.create_user(settings.test_user, function(err, body){
    if (err == null) console.log(('\n\nCreated "'+settings.test_user.name+'\n\n').green);
    else console.error('\n\nError creating user:'.red, err, '\n\n');
});