- Python 3.8+
requestslibrary
pip install requestsOpen moti_physio_client.py and edit the three constants at the top:
BASE_URL = "https://api.motiphysio.com"
PROGRAM_ID = "YOUR_PROGRAM_ID"
SECURITY_KEY = "YOUR_SECURITY_KEY"python moti_physio_client.pypython/
└── moti_physio_client.py # All 8 endpoints, clean helper functions
- Fetches the full member list for your program
- Fetches the detailed profile of the first member in the list
- Fetches Static / OHS / OLS analysis record lists for that member
- Fetches Presigned Report URLs for each analysis type (first record only)
All responses are printed to the console so you can verify the shape of the data before building your own integration logic.
- A 200 ms delay is added between requests to stay well within the 10 req/s rate limit.
- Business-logic errors (
"error"key in the response body) are raised asValueErrorby thepost()helper so you can catch them explicitly.