Commit 60848bf2 authored by sergio1990's avatar sergio1990

Fixed bugs after testing

parent 51598217
......@@ -114,9 +114,10 @@ module BetfairApiNgRails
module Http
autoload :Requester, 'betfair_api_ng_rails/api/http/requester'
autoload :Responser, 'betfair_api_ng_rails/api/http/responser'
autoload :Factory, 'betfair_api_ng_rails/api/http/factory'
autoload :Requester, 'betfair_api_ng_rails/api/http/requester'
autoload :Responser, 'betfair_api_ng_rails/api/http/responser'
autoload :Factory, 'betfair_api_ng_rails/api/http/factory'
autoload :GoRequester, 'betfair_api_ng_rails/api/http/go_requester'
end
......
......@@ -18,7 +18,7 @@ module BetfairApiNgRails
:use_cache,
:cache_expire,
:go_url,
:go_enable
:go_enable,
:go_localuser,
:go_filename
......
......@@ -52,7 +52,9 @@ module BetfairApiNgRails
:api_url,
:keep_alive_url,
:username,
:password
:password,
:go_localuser,
:go_filename
]
end
......
......@@ -63,15 +63,15 @@ module BetfairApiNgRails
end
def prepare_url
provider ? prepare_api_url : prepare_auth_url
is_provider ? prepare_api_url : prepare_auth_url
end
def prepare_auth_url
"#{Api::Config.go_url}/en/#{username}/#{password}/#{app_key}/#{Api::Config.go_localuser}/#{Api::Config.go_filename}"
"#{Api::Config.go_url}/auth/en/#{username}/#{password}/#{app_key}/#{Api::Config.go_localuser}/#{Api::Config.go_filename}"
end
def prepare_api_url
"#{Api::Config.go_url}/api/#{app_key}/#{session_key}"
"#{Api::Config.go_url}/api/#{app_key}/#{CGI::escape(session_key)}"
end
end
......
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