Sign in to follow this  
Followers 0
johna007

Getting Betfair API

8 posts in this topic

Hi All

Can you make a Betfair API call using AutoIt ?

If so how.

Johna007

Share this post


Link to post
Share on other sites



Hi All

Can you make a Betfair API call using AutoIt ?

If so how.

Johna007

For those ignorant folks like me, mind explaining what a "Betfair API call" is?

Share this post


Link to post
Share on other sites

For those ignorant folks like me, mind explaining what a "Betfair API call" is?

Its a poker/sportbetting site


Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad

Share this post


Link to post
Share on other sites

I think it uses SOAP how would you call it ?

johna007

Share this post


Link to post
Share on other sites

has anyone an intrest in learning how to call data from betfair api? i haven't a clue were to start.

Share this post


Link to post
Share on other sites

Betfair is a UK Based company that runs an online gambling and betting site.

they take bets on damn near anything from what i recall, one of my mates worked for there tech department when the setup in my area.. damn they have a nice server room.

Share this post


Link to post
Share on other sites

Example API Request and Response

The following example shows an example XML request and response for the login service. The request is:

<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:SOAPENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://
www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> 

<SOAP-ENV:Body>
<login xmlns="http://www.betfair.com/publicapi/BFService/">
<request>
<username>AUserName</username>
<password>APassWord</password>
<productId>22</productId>
<vendorSoftwareId>0</vendorSoftwareId>
<locationId>0</locationId>
</request>
</login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The response received is:

<soap:Envelope xmlns:n2="http://www.betfair.com/publicapi/types/" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soap:Body>
<n:loginResponse xmlns:n="http://www.betfair.com/publicapi/BFService/">
<n:Result xsi:type="n2:LoginResp">
<header xsi:type="n2:APIResponseHeader">
<errorCode xsi:type="n2:APIErrorEnum">OK</errorCode>
<minorErrorCode xsi:nil="1"></minorErrorCode>
<sessionToken xsi:type="xsd:string">r6n+yBbOnm3ret5rkj4ti4Zg<sessionToken>
<timestamp xsi:type="xsd:dateTime">2006-01-06T13:27:58.330Z</timestamp>
</header>
<currency xsi:type="xsd:string">GBP</currency>
<errorCode xsi:type="n2:LoginErrorEnum">OK</errorCode>
<minorErrorCode xsi:nil="1"></minorErrorCode>
<validUntil xsi:type="xsd:dateTime">2006-02-05T00:00:00.000Z</validUntil>
</n:Result>
</n:loginResponse>
</soap:Body>
</soap:Envelope>

In this example, the sessionToken contains the value r6n+yBbOnm3ret5rkj4ti4Zg.

would it be possible to make this XML request from autoit?

Share this post


Link to post
Share on other sites

Hi All

Can you make a Betfair API call using AutoIt ?

If so how.

Johna007

Why not just get it over with? Empty your bank account, send all your money to money to me, and move into a dirty cardboard box tonight!

Why drag it out?

:rolleyes:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0