danielkorzekwa / betfair-api

Automatically exported from code.google.com/p/betfair-api
3 stars 1 forks source link

apache and springframework libraries #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
These API uses apache and spring libraries. Where can I find them to add them 
to the project?

Thanks

Original issue reported on code.google.com by marcosta...@gmail.com on 7 Apr 2012 at 5:35

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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