Open GoogleCodeExporter opened 9 years ago
If you use maven, then all required libraries will be downloaded automatically.
At the http://code.google.com/p/betfair-api/ home page there are details on
maven repository as well as an example integration test, demonstrating how to
use this api.
If you don't know maven (or you don't want to use it), you have two options:
- download all dependencies manually from the internet, e.g. from apache cxf
home page or spring home page.
- Install maven and then in the betfair-api trunk directory call mvn clean
install. This will download all required dependencies to local maven repo.
How to use this API:
With Spring:
http://code.google.com/p/betfair-api/source/browse/trunk/src/test/java/dk/bot/be
tfairservice/BetFairServiceImplIntegrationTest.java
Without spring:
Simply create an object of this factory:
http://code.google.com/p/betfair-api/source/browse/trunk/src/main/java/dk/bot/be
tfairservice/DefaultBetFairServiceFactoryBean.java
then set user,pass and product Id, call login and finally call getObject
factory method, which returns configured api object.
Original comment by daniel.k...@gmail.com
on 7 Apr 2012 at 6:28
Thank you really much, I was downloading them manually.
Sorry another quick question, you said to add the getMUBet(Long betId) method
to the interface betfairservice, but now I have to implement that method in
BetFairServiceImpl. Can you please post the code of this method? Thanks again
Original comment by marcosta...@gmail.com
on 7 Apr 2012 at 6:36
The getMUBet method is already implemented, just look at this interface
http://code.google.com/p/betfair-api/source/browse/trunk/src/main/java/dk/bot/be
tfairservice/BetFairService.java,
Original comment by daniel.k...@gmail.com
on 7 Apr 2012 at 6:43
I downloaded the 0.6 realease and there it wasn't implemented. I copied and
pasted the one of your link but now I'm missing GetMUBetCommand. Have I
downloaded an old version?
Original comment by marcosta...@gmail.com
on 7 Apr 2012 at 6:47
Edit: I copied and pasted the one of BetFairServiceImpl that I found from your
link
Original comment by marcosta...@gmail.com
on 7 Apr 2012 at 6:52
Ok, I copied also the GetMUBetCommand class, corrected another couples of issue
and now I've got no errors, but I think there are some things missing in the
0.6 release. Anyway, thanks for the API and the help, it's time to try them. :)
Original comment by marcosta...@gmail.com
on 7 Apr 2012 at 7:09
Did you try 0.7?
<dependency>
<groupId>dk.flexibet</groupId>
<artifactId>flexibet-betfair</artifactId>
<version>0.7</version>
</dependency>
Check, it might be already there.
Original comment by daniel.k...@gmail.com
on 7 Apr 2012 at 7:20
Yes, it is there:
http://dk-maven2-repo.googlecode.com/svn/maven-repo/releases/dk/flexibet/flexibe
t-betfair/0.7/, source:
file:///C:/Users/batman/Downloads/flexibet-betfair-0.7-sources.jar
Original comment by daniel.k...@gmail.com
on 7 Apr 2012 at 7:22
I only looked in the download section and I missed that. Perfect, I will simply
go with the 0.7 then :)
Original comment by marcosta...@gmail.com
on 7 Apr 2012 at 7:27
Original issue reported on code.google.com by
marcosta...@gmail.com
on 7 Apr 2012 at 5:35