So,
I'm trying to login to Betfair using the sample code in C#
Using the streams sample code, the "Betfair.ConsoleApp" threw an exception about SSL/TLS certifications. After some extensive googling this managed to fix the problem:
Now, when I try to login there is an exception "NotAuthorized: AppKey is not configured for service". I am using a delayed key, but according to Betfair this should work using streaming?
I can see very few comments in the code, I can't find any accompanying documentation except for the markdown file and the pdf spec.
I saw there was a sticky topic of "Non-Interactive Login Sample" - I tried that code with comes up with the exception "CERT_AUTH_REQUIRED"? However, there are no comments or explanations on how to integrate it with the Betfair.ESA code so I don't see how it can be used.
To note, I have used the Python sample code with the same app key and path to certificates which works absolutely fine?
I've been trawling through the Betfair.ESA code for hours to try and figure out how it works, is there any kind of supporting documentation? I find it hard to believe someone has spent so much time writing it but not put any explanations for how it all works...
Anyway, any help is appreciated,
Thanks
I'm trying to login to Betfair using the sample code in C#
Using the streams sample code, the "Betfair.ConsoleApp" threw an exception about SSL/TLS certifications. After some extensive googling this managed to fix the problem:
Code:
ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I can see very few comments in the code, I can't find any accompanying documentation except for the markdown file and the pdf spec.
I saw there was a sticky topic of "Non-Interactive Login Sample" - I tried that code with comes up with the exception "CERT_AUTH_REQUIRED"? However, there are no comments or explanations on how to integrate it with the Betfair.ESA code so I don't see how it can be used.
To note, I have used the Python sample code with the same app key and path to certificates which works absolutely fine?
I've been trawling through the Betfair.ESA code for hours to try and figure out how it works, is there any kind of supporting documentation? I find it hard to believe someone has spent so much time writing it but not put any explanations for how it all works...
Anyway, any help is appreciated,
Thanks


Comment