Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
EUI = require('eui');
Class = require('class.js').Class;
OAuth = require('oauth.js').OAuth;
ajax = require('ajax.js');
var XMLHttpRequest = require('http').XMLHttpRequest;
/* --- About twitter keys ---
* In order to an application access twitter, on behalf of the user,
* the application need to get some keys, part of the OAuth process
* used by twitter. To get these keys (consumerKey and consumerSecret),
* visit http://dev.twitter.com, sign in, create an app and get the keys.
* Then, assign them to the next two global variables.
* Remember that consumerSecret must be kept secret.
* */
var gConsumerKey; //<- Put consumer key here!
var gConsumerSecret; //<- Put consumer secret here!
var gToken = null;