Github api v3

From wikinotes
Revision as of 02:17, 18 November 2020 by Will (talk | contribs) (→‎Documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

official docs https://docs.github.com/en/free-pro-team@latest/rest/guides/getting-started-with-the-rest-api
headers = {'Authorization': 'token ....',
           'User-Agent': 'octocat'}  # alt - program-name
conn = HTTPSConnection(self._domain, 443)
conn.request('GET', '/users/octocat/repos', headers=headers)