Commit 980cbbad authored by Oleksandr's avatar Oleksandr 🎱

rename the url to uri

parent 37e23dc9
...@@ -19,7 +19,7 @@ module Wedoops ...@@ -19,7 +19,7 @@ module Wedoops
def initialize(options={}) def initialize(options={})
# environment specific settings # environment specific settings
if options.has_key?(:environment) && options[:environment] == "sandbox" if options.has_key?(:environment) && options[:environment] == "sandbox"
self.class.base_url "https://sandbox.zohoapis.com/oauth/v2/" self.class.base_uri "https://sandbox.zohoapis.com/oauth/v2/"
end end
#build_url(options) #build_url(options)
...@@ -127,4 +127,4 @@ module Wedoops ...@@ -127,4 +127,4 @@ module Wedoops
end end
end end
end end
\ No newline at end of file
...@@ -15,7 +15,7 @@ module Wedoops ...@@ -15,7 +15,7 @@ module Wedoops
def initialize(options={}) def initialize(options={})
# environment specific settings # environment specific settings
if options.has_key?(:environment) && options[:environment] == "sandbox" if options.has_key?(:environment) && options[:environment] == "sandbox"
self.class.base_url "https://sandbox.zohoapis.com/oauth/v2/" self.class.base_uri "https://sandbox.zohoapis.com/oauth/v2/"
end end
options.merge!(grant_type: "refresh_token") options.merge!(grant_type: "refresh_token")
...@@ -29,4 +29,4 @@ module Wedoops ...@@ -29,4 +29,4 @@ module Wedoops
end end
end end
end end
\ No newline at end of file
...@@ -16,7 +16,7 @@ module Wedoops ...@@ -16,7 +16,7 @@ module Wedoops
def initialize(options={}) def initialize(options={})
# environment specific settings # environment specific settings
if options.has_key?(:environment) && options[:environment] == "sandbox" if options.has_key?(:environment) && options[:environment] == "sandbox"
self.class.base_url "https://sandbox.zohoapis.com/crm/v2/" self.class.base_uri "https://sandbox.zohoapis.com/crm/v2/"
end end
#Es un cliennte basico que trabaja a partir de refresh_tokens #Es un cliennte basico que trabaja a partir de refresh_tokens
...@@ -244,4 +244,4 @@ module Wedoops ...@@ -244,4 +244,4 @@ module Wedoops
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment