Commit 4f4fe3bb authored by Sergey Gernyak's avatar Sergey Gernyak

Move api urls to constants

parent ec426803
......@@ -5,7 +5,6 @@ module BetfairApiNgRails
attr_accessor :application_key,
:ssl_key_filepath,
:ssl_crt_filepath,
:api_url,
:username,
:password,
:locale,
......
......@@ -12,21 +12,27 @@ module BetfairApiNgRails
"Accept" => "application/json"
}
ALLOWED_RESOURCES = [
"listEventTypes",
"listCompetitions",
"listTimeRanges",
"listEvents",
"listMarketTypes",
"listCountries",
"listVenues",
"listMarketCatalogue",
"listMarketBook",
"listCurrentOrders",
"listClearedOrders",
"listMarketProfitAndLoss",
"placeOrders"
]
ALLOWED_RESOURCES = {
betting:[
"listEventTypes",
"listCompetitions",
"listTimeRanges",
"listEvents",
"listMarketTypes",
"listCountries",
"listVenues",
"listMarketCatalogue",
"listMarketBook",
"listCurrentOrders",
"listClearedOrders",
"listMarketProfitAndLoss",
"placeOrders"
],
account:[
"getAccountDetails",
"getAccountFunds"
]
}
ALLOWED_FORMATTING = [
"listEventTypes",
......@@ -46,7 +52,6 @@ module BetfairApiNgRails
LOADABLE_CONFIG_OPTIONS = [
:application_key,
:api_url,
:username,
:password,
:go_localuser,
......
development:
application_key: YOUR_APP_KEY
api_url: https://api-ng.betstores.com/betting/betfair/services/api.betfair.com/exchange/betting/json-rpc/v1
username: YOUR_ACCOUNT_USERNAME
password: YOUR_ACCOUNT_PASSWORD
go_localuser: YOURUSERNAME
......@@ -8,7 +7,6 @@ development:
production:
application_key: YOUR_APP_KEY
api_url: https://api-ng.betstores.com/betting/betfair/services/api.betfair.com/exchange/betting/json-rpc/v1
username: YOUR_ACCOUNT_USERNAME
password: YOUR_ACCOUNT_PASSWORD
go_localuser: YOURUSERNAME
......
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