Intro to APIs Workshop

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

Setup

  1. Clone the repository.
git clone https://github.com/icssc-projects/intro-api-python.git
  1. Install python - You can install python at this link https://www.python.org/

  2. Install dependencies (namely, requests). Documentation for requests is here.

pip install requests
  1. Run the script, main.py.
python main.py

Resources

https://www.nylas.com/blog/use-python-requests-module-rest-apis/

https://docs.python-requests.org/en/latest/