Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joshua Lind
BetfairNGAPI
Commits
4f4fe3bb
Commit
4f4fe3bb
authored
Nov 24, 2014
by
Sergey Gernyak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move api urls to constants
parent
ec426803
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
19 deletions
+21
-19
lib/betfair_api_ng_rails/api/config.rb
lib/betfair_api_ng_rails/api/config.rb
+0
-1
lib/betfair_api_ng_rails/api/constants.rb
lib/betfair_api_ng_rails/api/constants.rb
+21
-16
lib/generators/betfair_api_ng_rails/install/templates/betfair_api_ng_rails.yml
...r_api_ng_rails/install/templates/betfair_api_ng_rails.yml
+0
-2
No files found.
lib/betfair_api_ng_rails/api/config.rb
View file @
4f4fe3bb
...
@@ -5,7 +5,6 @@ module BetfairApiNgRails
...
@@ -5,7 +5,6 @@ module BetfairApiNgRails
attr_accessor
:application_key
,
attr_accessor
:application_key
,
:ssl_key_filepath
,
:ssl_key_filepath
,
:ssl_crt_filepath
,
:ssl_crt_filepath
,
:api_url
,
:username
,
:username
,
:password
,
:password
,
:locale
,
:locale
,
...
...
lib/betfair_api_ng_rails/api/constants.rb
View file @
4f4fe3bb
...
@@ -12,7 +12,8 @@ module BetfairApiNgRails
...
@@ -12,7 +12,8 @@ module BetfairApiNgRails
"Accept"
=>
"application/json"
"Accept"
=>
"application/json"
}
}
ALLOWED_RESOURCES
=
[
ALLOWED_RESOURCES
=
{
betting
:[
"listEventTypes"
,
"listEventTypes"
,
"listCompetitions"
,
"listCompetitions"
,
"listTimeRanges"
,
"listTimeRanges"
,
...
@@ -26,7 +27,12 @@ module BetfairApiNgRails
...
@@ -26,7 +27,12 @@ module BetfairApiNgRails
"listClearedOrders"
,
"listClearedOrders"
,
"listMarketProfitAndLoss"
,
"listMarketProfitAndLoss"
,
"placeOrders"
"placeOrders"
],
account
:[
"getAccountDetails"
,
"getAccountFunds"
]
]
}
ALLOWED_FORMATTING
=
[
ALLOWED_FORMATTING
=
[
"listEventTypes"
,
"listEventTypes"
,
...
@@ -46,7 +52,6 @@ module BetfairApiNgRails
...
@@ -46,7 +52,6 @@ module BetfairApiNgRails
LOADABLE_CONFIG_OPTIONS
=
[
LOADABLE_CONFIG_OPTIONS
=
[
:application_key
,
:application_key
,
:api_url
,
:username
,
:username
,
:password
,
:password
,
:go_localuser
,
:go_localuser
,
...
...
lib/generators/betfair_api_ng_rails/install/templates/betfair_api_ng_rails.yml
View file @
4f4fe3bb
development
:
development
:
application_key
:
YOUR_APP_KEY
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
username
:
YOUR_ACCOUNT_USERNAME
password
:
YOUR_ACCOUNT_PASSWORD
password
:
YOUR_ACCOUNT_PASSWORD
go_localuser
:
YOURUSERNAME
go_localuser
:
YOURUSERNAME
...
@@ -8,7 +7,6 @@ development:
...
@@ -8,7 +7,6 @@ development:
production
:
production
:
application_key
:
YOUR_APP_KEY
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
username
:
YOUR_ACCOUNT_USERNAME
password
:
YOUR_ACCOUNT_PASSWORD
password
:
YOUR_ACCOUNT_PASSWORD
go_localuser
:
YOURUSERNAME
go_localuser
:
YOURUSERNAME
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment