lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-2.1.0 vs lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-2.2.1
- old
+ new
@@ -1,8 +1,11 @@
require 'dotenv'
+require 'fiddle'
require 'logger'
require 'multi_json'
+require 'ringcentral_sdk'
+require 'uri'
module RingCentralSdk
module REST
# Configuration class populated by Client constructor block
class Configuration
@@ -93,9 +96,13 @@
end
if !defined?(@token) && !@token.nil? && @token.is_a?(String) && @token =~ /^\s*{/
@token = MultiJson.decode @token
end
+ end
+
+ def authorize_url
+ URI.join(@server_url, RingCentralSdk::REST::Client::AUTHZ_ENDPOINT)
end
end
end
end