Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GitHub get organization members

import json

from github_rest_api import get_from_github

orgid = 'github'
data = get_from_github(f"https://api.github.com/orgs/{orgid}/members")
with open("out.json", 'w') as fh:
    json.dump(data, fh, indent=4)
print(data)

python examples/github-rest/rest_get_org_members.py

{% embed include file="src/examples/github-graphql/get_org_members.gql)

python examples/github-graphql/run_query_requests.py examples/github-graphql/get_org_members.gql out.json