How to use the oauth.js.OAuth function in oauth

To help you get started, we’ve selected a few oauth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shr-project / enlightenment / PROTO / easyui / twitter.js View on Github external
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;