Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Last active August 29, 2015 14:05
Show Gist options
  • Save trptcolin/e428b0f80e3335757c33 to your computer and use it in GitHub Desktop.
Save trptcolin/e428b0f80e3335757c33 to your computer and use it in GitHub Desktop.
# Hackery idea
- Github API (get/use an api key - otherwise really limited)
$ curl -u 'USERNAME_HERE' -d '{"scopes":["repo"],"note":"help example"}' https://api.github.com/authorizations
- find all your organizations (paginated)
- find all usernames (grouped by org name) who are in that group
with you
/orgs
doseq [org orgs] ;; will involve potentially multiple pages
- make /org/members (also paginated)
{"org_name_1": ["member_1", "member_2", "member_3"],
"org_name_2": ["member_a", "member_b", "member_c"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment