Commit ce6e658a authored by Sergey Gernyak's avatar Sergey Gernyak

Passing api url to proxy tire 👍

parent a6a7e6e2
...@@ -11,10 +11,11 @@ module BetfairApiNgRails ...@@ -11,10 +11,11 @@ module BetfairApiNgRails
attr_reader :http, :request, :uri, attr_reader :http, :request, :uri,
:app_key, :session_key, :username, :app_key, :session_key, :username,
:password, :body, :is_provider :password, :body, :is_provider, :api_url
def initialize(url, provider = true, use_ssl = true) def initialize(url, provider = true, use_ssl = true)
@is_provider = provider @is_provider = provider
@api_url = url
end end
def do_request def do_request
...@@ -75,6 +76,7 @@ module BetfairApiNgRails ...@@ -75,6 +76,7 @@ module BetfairApiNgRails
BetfairApiNgRails.log.write("==> Setting request body #{body}") BetfairApiNgRails.log.write("==> Setting request body #{body}")
request.set_form_data({ request.set_form_data({
app_key: app_key, app_key: app_key,
api_url: api_url,
session_token: session_key, session_token: session_key,
body: body body: body
}) })
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