Repository URL to install this package:
|
Version:
0.0.11-rc1 ▾
|
var buildUrl = require('./helpers/buildUrl');
/**
* Get the OAuth Url
*
* @param {String} baseUrl - the base url to use for the endpoint
* @param {Object} options
* @returns {String}
*/
function getOAuthUrl(baseUrl, secret) {
var secretParam = secret ? '?secret=' + secret : '';
if (typeof baseUrl !== 'string') {
throw new Error('baseUrl must be a string, got ' + typeof baseUrl);
}
return buildUrl(baseUrl, '/api/svc-zoom-integration/v1.0/oauth/authorize' + secretParam);
}
module.exports = getOAuthUrl;