Sha256: 975a1a45163eed970cf9944f867b964cd923f415bc7d03f389828c6c3d0ccf9a
Contents?: true
Size: 462 Bytes
Versions: 70
Compression:
Stored size: 462 Bytes
Contents
module Hubspot class OAuthHelper AUTHORIZE_URL = 'https://app.hubspot.com/oauth/authorize'.freeze class << self def authorize_url(client_id:, redirect_uri:, scope:, optional_scope: []) query = URI.encode_www_form( client_id: client_id, redirect_uri: redirect_uri, scope: Array(scope), optional_scope: Array(optional_scope) ) "#{AUTHORIZE_URL}?#{query}" end end end end
Version data entries
70 entries across 70 versions & 2 rubygems