Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 44 Next »

Demo tools are available for API-NG for both the Betting and Accounts API.  The Demo Tools can be used by developers to allow quick experimentation with the API. 

Why Use Demo Tools?

    • All existing API operations are available

    • You can easily experiment with the parameters for your API queries.

    • You can build sample requests and interact with the API directly requests and responses are output to the JavaScript debug console.  For example, using Google Chrome, you can open the Javascript console using the shortcut Ctrl+Shift+J. The same shortcut can also be used with Mozilla Firefox.

Please note that the Demo Tools are provided as-is, and is intended solely as a testing resource.

Obtaining a Session Token for the Demo Tools

There are several ways that you can obtain a session token for the visualiser:

1. Using the pre-populated session token from the website

The Demo Tools will populate the session token field with the value of a session token found in your browsers cookie store for the website.   Login to (via a seperate browser tab) and refresh the demo tools page to automatically input the Session Token field

2. Using the API-NG Interactive login sample 

Download SampleAPI.exe which is a compiled version of the sample interactive login code which is described in the documentation here, with the source from the API-NG Sample code github repo.

Enter your application key and follow the login instructions; your session token with be extracted from your session and presented to you via the application.