A demo of how to use APIs with Python. This demo uses the PeterPortal API.
If you are using JavaScript, you can checkout how to make API requests here
- Clone the repository.
git clone https://github.com/icssc-projects/intro-api-python.git
-
Install python - You can install python at this link https://www.python.org/
-
Install dependencies (namely,
requests
). Documentation forrequests
is here.
pip install requests
- Run the script,
main.py
.
python main.py
https://www.nylas.com/blog/use-python-requests-module-rest-apis/