API-NG-sample-code | Code snippets in various languages | REST library
kandi X-RAY | API-NG-sample-code Summary
kandi X-RAY | API-NG-sample-code Summary
Betfair API-NG Code Samples.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point
- Start the analytics
- Prints the marketCatalogue
- Start the application
- Returns a list of market catalogs
- Send Post request
- Make a request
- Returns a list of all time ranges in market
- Make a request to the API
- Get all countries for a Market filter
- Compares two MarketOrder objects
- Compares two PriceSize objects
- Compares two StartingPrices
- Compares two Runner instances for equality
- Get list of market types for a given filter
- Compares two PriceProjections
- Get a list of market events
- Compares two RunnerCatalog objects for equality
- Get all fixtures with the given filter
- Return a list of market types matching the given filters
- Produce place instructions
- Retrieve a list of market types for the market filter
- Retrieve a list of market book
- Creates a list of place orders
- Return a list of market books
- Handle an HTTP response
API-NG-sample-code Key Features
API-NG-sample-code Examples and Code Snippets
Community Discussions
Trending Discussions on API-NG-sample-code
QUESTION
I have been struggling to achieve Non-interactive login to Betfair using certificate. I'm using C# and on Windows 10. I'm just testing with sample project: https://github.com/betfair/API-NG-sample-code
- I have app key
- I created certificates with no password following the url: https://www.youtube.com/watch?v=8N-EnnmN59Y&t=51s
Next according to the note from the sample, I created *.pfx for P12. https://github.com/betfair/API-NG-sample-code/blob/master/loginCode/Non-interactive-cSharp/README.md
So I think everything is done in right order but it keeps saying internal error.
Could anyone help me?
...ANSWER
Answered 2018-Dec-05 at 12:17everyone. Sorry, there was misunderstanding. The login process asks password during running and I thought it's for the password of certificate. But now I see that it's the password for an account of Betfair. If anyone spent time because of my stupid question, sorry.
I decided to post this as an answer hoping others not misunderstand the flow.
Thanks.
QUESTION
I have been trying to log in to a Betfair account following these steps and using this source code. This works fine and I am returned a session key, however if I try to repeat the steps to get a session key in another project I receive a "CERT_AUTH_REQUIRED" error, implying that there is something wrong with the client certificate I am sending with my request.
Odder still, if I create another project that references the working Betfair project and get this new project to simply run the Program.Main method in the Betfair project I get the "CERT_AUTH_REQUIRED" message again?
When the Betfair application is the Launch project for the solution it works, but if I set the second project that launches the betfair console app as the startup project it doesn't return a success response (although the code runs fine and goes through all the same steps, it is just the web response that fails).
Does anyone have any idea why this might be?
...ANSWER
Answered 2017-Apr-25 at 08:23I managed to get that code working for non-interactive log ins. I did make this change though. It sounds vaguely familiar as I remember having that error.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install API-NG-sample-code
You can use API-NG-sample-code like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the API-NG-sample-code component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page