You can see sample code to access the LeagueApps private API in whichever method is best for you. All three options have the same Python code:
Python file:
Github repo:
Plaintext file:
This file includes the parameters last_updated and last_id both set to 0. If you would like to test other values for these fields, you can change those values within the file.
To run the file:
Save the Python file in the same folder that the Private API Key (p12 file) for your site is located
Make sure that you have converted the p12 file to a PEM file, and that it's also located in that same folder
openssl pkcs12 -nodes -in <client-id>.p12 -out <client-id>.pemnotasecretRun the following from the command line (the type flag can also be members-2 or transactions-2):
python v2-sync-new.py --site-id <site-id> --client-id <client-id> --pem-file <client-id>.pem --type registrations-2
Using this site:

The site ID is 43590
The client ID is 4ed0b8ab223s2gaa9f2c833b1e12
I downloaded the p12 file and converted it to a PEM file. I saved the Python file in the same folder:

I then ran the following from the command line:

This created 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 would be overwritten with new results.
Note on Windows