Commit 980cbbad authored by Oleksandr's avatar Oleksandr 🎱

rename the url to uri

parent 37e23dc9
......@@ -19,7 +19,7 @@ module Wedoops
def initialize(options={})
# environment specific settings
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
#build_url(options)
......
......@@ -15,7 +15,7 @@ module Wedoops
def initialize(options={})
# environment specific settings
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
options.merge!(grant_type: "refresh_token")
......
......@@ -16,7 +16,7 @@ module Wedoops
def initialize(options={})
# environment specific settings
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
#Es un cliennte basico que trabaja a partir de refresh_tokens
......
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