Last active
October 5, 2020 13:09
-
-
Save elowy01/598483a9f1ac3ee2856289b9225c5e43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Reference documentation: | |
| https://docs.github.com/en/free-pro-team@latest/rest/guides/getting-started-with-the-rest-api | |
| # Basic curl get command: | |
| curl https://api.github.com/zen | |
| # The same but getting info on the headers: | |
| curl -i https://api.github.com/zen | |
| # Get info on a particular repo: | |
| curl -i https://api.github.com/repos/elowy01/FOREX | |
| # Info on a certain user: | |
| curl https://api.github.com/users/elowy01 | |
| # All repos for a certain user: | |
| curl https://api.github.com/users/elowy01/repos | |
| # All repos for a certain organization (in this case EMBL-EBI-GCA) | |
| curl https://api.github.com/orgs/EMBL-EBI-GCA/repos |grep full_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment