You can see sample code to access the LeagueApps private API which is hosted in a public Github repository. The easiest option is to download the raw file linked below, but the repository is also linked.

Raw file:

raw.githubusercontent.com

Github:

https://github.com/LeagueApps/api-example

This file supports the parameters last-updated and last-id both default to 0. If you would like to test other values for these fields, you can provide these as parameters when running the script, see below for more details.

To run the file:

Optional parameters:

--additional-params includeDeleted=true program-id=123 backgroundCheckCode=AN

Running this script is creates a new file in the same folder called records.json , which contains the result of that API call to the registrations endpoint. If records.json already existed in the folder, it will be overwritten with new results.

Note on Windows

This sample code works via Windows Subsystem for Linux (WSL). It should work from a Windows command shell as well, but there will be extra setup steps needed to get openssl installed on Windows to do the certificate conversion from p12 to PEM.