Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/zoom-client / src / getOAuthUrl.js
Size: Mime:
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;