Lefora Free Forum
682 views

BetDaq API

Page 1
posts 1–4 of 4
rookie - member
4 posts

Hello,
Just to get the ball rolling after the daylight robbery at Betfair here is the start of some Python code to access the Betdaq API. It's pretty rough and requires some proper architecture but it's a reasonable start. It currently requires py_curl. At the very least the regular expressions should be useful to somebody.

Change YOURUSERNAME and YOURPASSWORD.
BD_CURL is the main object.

Just in case you've not found it the api docs are here:
http://api.betdaq.co.uk/v2.0/Docs/default.aspx

Cheers,
Toothy.

rookie - member
1 posts

Hi Toothy,

You don't seem to have posted the link to your code snippet...

A.

rookie - member
4 posts
rookie - member
3 posts

I am having trouble trying to get access to the API with Python (had no trouble with PHP so I know that my account is enabled for API access).

When I call ListTopLevelEvents I get a response back with an error message InvalidUserName. I have changed the YOURUSERNAME to the correct user name.

Any ideas why this would not work?

I also tried to use the wsdl2py command to generate code for ZSI - but that failed as well. Not having a good day.

Sorry - found the problem just after I posted. Probably worth pointing out that the code is setup to access the betdaq.co.uk site and you need to change this to betdaq.com if thats where your account is (or at least use the correct user name!)

JAT

Page 1
posts 1–4 of 4

This Topic Is Locked To Guest Posts

It's been a while since this topic was active, if you'd like to get it going again, please post as a registered member

join now