Skip to content

Commit

Permalink
Added optional Access Token as third parameter during initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
AidenMontgomery committed Apr 28, 2014
1 parent 2540c49 commit ced2626
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/vimeo.js
Expand Up @@ -45,10 +45,15 @@ var auth_endpoints = module.exports.auth_endpoints = {
*
* @param {string} client_id OAuth 2 Client Identifier
* @param {string} client_secret OAuth 2 Client Secret
* @param (string) access_token OAuth 2 Optional pre-authorized access token
*/
var Vimeo = module.exports.Vimeo = function Vimeo (client_id, client_secret) {
var Vimeo = module.exports.Vimeo = function Vimeo (client_id, client_secret, access_token) {
this._client_id = client_id;
this._client_secret = client_secret;

if (access_token) {
this.access_token = access_token;
}
};

Vimeo.prototype._client_id = null;
Expand Down

0 comments on commit ced2626

Please sign in to comment.