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:

  1. Python file:

    v2-sync-new.py

  2. Github repo:

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

  3. Plaintext file:

    python-file-plaintext.rtf

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:

Example

Using this site:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/456230bc-455f-4da9-8685-8b2bc215e6d2/Untitled.png

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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9e490636-734f-4076-a52b-76a5b0dee9c4/Untitled.png

I then ran the following from the command line:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3240484e-6b0a-4c4a-b8cd-71ec25bc5ded/Untitled.png

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