Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialisation #4

Closed
systemshq opened this issue Jul 3, 2015 · 4 comments
Closed

Initialisation #4

systemshq opened this issue Jul 3, 2015 · 4 comments

Comments

@systemshq
Copy link

Not sure what I'm doing wrong here? Many thanks in advance.

[1] pry(main)> gem 'betfair-ng'
[2] pry(main)> client = Betfair::Client.new("X-Application" => "...............")
NameError: uninitialized constant Betfair

@mikecmpbll
Copy link
Owner

hi @systemshq. you only need the gem command if you're using Bundler and a Gemfile. If you want to have a play in irb then install the gem to your system with gem install betfair-ng at the command line. Then in irb just require 'betfair'.

@systemshq
Copy link
Author

Rather nice. Many thanks!!

One more question please. in the Betfair non-interactive login documentation it discusses needing self signed ssl certs:-

https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Non-Interactive+%28bot%29+login

Yet your library doesn't make use of them? I'm not really too worried as when I log in via the web browser I'm also not using a self signed cert. However, since Betfair seem to have gone to a lot of trouble to get programmers to use self signed certs I was wondering what your rationale for not using them was please?

@mikecmpbll
Copy link
Owner

It's advisable to use the non-interactive login for bot login, as the documentation you pointed to suggests. This was added to betfair-ng by @paulgillard (#2) and released in v0.2.0.

Feel free to submit a pull request for the README if you want to update it to add info about non_interactive_login :)

@systemshq
Copy link
Author

Many thanks:):)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants