Getting started with Python APIs

Interacting with GitHub

We can use APIs to interact with GitHub too. Keeping it simple, we’ll use the POST request to create a new repo called api_test.

Authorization

First, as always, we need an authorization token. Fortunately, we can get this set up much faster than we did with the Google Maps API — you can find a step-by-step guide here.

Note that on step seven, it is entirely up to you which permissions you select — but all we will need is repo:

Screenshot during step seven of GitHub authorization token showing repo to be checked, and delete repo unchecked.