lib/withings.js
function (options) {

    this._oauth = new OAuth.OAuth(
        endpoints.requestToken,
        endpoints.accessToken,
        options.consumerKey,
        options.consumerSecret,
        '1.0',
        options.callbackUrl,
        'HMAC-SHA1'
    );

    // Store authenticated access if it exists
    if (options.accessToken) {
        this.accessToken = options.accessToken;
        this.accessTokenSecret = options.accessTokenSecret;
    }

    // Store a user ID if it exists
    if (options.userID) {
        this.userID = options.userID;
    }

}
function (options) {

    this._oauth = new OAuth.OAuth(
        endpoints.requestToken,
        endpoints.accessToken,
        options.consumerKey,
        options.consumerSecret,
        '1.0',
        options.callbackUrl,
        'HMAC-SHA1'
    );

    // Store authenticated access if it exists
    if (options.accessToken) {
        this.accessToken = options.accessToken;
        this.accessTokenSecret = options.accessTokenSecret;
    }

    // Store a user ID if it exists
    if (options.userID) {
        this.userID = options.userID;
    }

}
function ( options ) { this . _oauth = new OAuth . OAuth ( endpoints . requestToken , endpoints . accessToken , options . consumerKey , options . consumerSecret , '1.0' , options . callbackUrl , 'HMAC-SHA1' ) ; // Store authenticated access if it exists if ( options . accessToken ) { this . accessToken = options . accessToken ; this . accessTokenSecret = options . accessTokenSecret ; } // Store a user ID if it exists if ( options . userID ) { this . userID = options . userID ; } }
OAuth API Client
OAuth API Client