Press enter to see results or esc to cancel.

GitHub API Profile: Automate Your GitHub Workflow

We’re wrapping up our #12DaysOfAPIs series! Today, we’re highlighting every developer’s favorite tool, GitHub.

screen-shot-2017-01-04-at-3-09-39-pm

What you can do with the GitHub API

The most common uses for the GitHub API is managing your repos and following updates, feeds and events. However, that’s far from everything that you can do with the API. Basically, anything you can do on GitHub, you can do programmatically through the API. And we say anything, we mean anything. Seriously. Our GitHub API package has a whopping 379 endpoints. See them and test the API for yourself within the browser here.

How to connect to the GitHub API

Step 1: Get a personal GitHub API token 

In order to use the GitHub API, you’ll need a GitHub account and credentials. Head over to the GitHub personal access tokens page to generate a (you guessed it!), personal access token.

screen-shot-2017-01-04-at-3-19-22-pm

Give your token a descriptive name and select the scopes that you’d like to grant the token. Then, click “Generate token.” Don’t close the window yet! Once you exit out of this page, you won’t be able to access it again.

Step 2: Test the API with RapidAPI

Now, you can call the GitHub API to perform a function.

1. Go to the RapidAPI GitHub Functions Page:

Open GitHub’s API functions page on RapidAPI. You’ll see a list of endpoints that this API can call.

2. Pick an endpoint and fill in the parameters:

We’ll run the starRespository endpoint and use it to star one of our favorite repos. You’ll see starRespository has three parameters: user , repositoryName and accessToken.

2a.Fill in the accessToken: Use the personal account token that you’ve generated on GitHub (we told you not to close that window!). If you have log in for a free account on RapidAPI, we’ll store your account token for you.

2b. Fill in the user and repositoryName: Since we’re a little biased, we’ll use the following:

user: RapidSoftwareSolutions

repositoryName:RapidAPIConnect_NodeJS

3. Call the API to starRespository

Now, for the fun part. Click “Test Function” to call the API. Voila! You’ve just starred our repository. Thanks for that 😉 

github-starrepo-gif

You can export this code into your app. Just log in, pick your language and export the snippet. If you’re connecting to multiple APIs, all you have to do is call rapid.connect vs. calling each individually. Search our marketplace for other APIs to connect with.

Project ideas

Now that we’ve shown you how to connect to the GitHub API, here are some cool things that you can build with it.

github-gif

Source: HBO GIPHY

Since RapidAPI lets you connect to multiple APIs through one abstraction layer, we’ve focused on project ideas that involve multiple APIs. Enjoy 🙂

  • Build a Slack integration that sends a notification every time someone forks your repo
  • Connect your GitHub to Facebook’s Graph API to automatically post when you publish a new project
  • Use the OneSignal API to send yourself a push notification whenever someone raises an issue

Happy coding! 

If you end up building something, write a comment below with a link to your repo. We’d love to see your work! Otherwise, follow along our #12DaysOfAPIs on Facebook, Twitter (@rapid_API) or the blog.

 

Comments

20 Comments

rickstackers free state

… [Trackback]

[…] Read More on|Read More|Read More Informations here|There you will find 57091 additional Informations|Informations on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

casinospieledeluxe.com/online-casinos/casino/32-red-casino/

… [Trackback]

[…] Read More here|Read More|Find More Informations here|There you can find 80851 more Informations|Informations on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Boynton cosmetic dentists

… [Trackback]

[…] Find More on|Find More|Find More Infos here|There you will find 16252 more Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

www.mukbucks.com

… [Trackback]

[…] Read More on|Read More|Read More Informations here|Here you will find 57363 additional Informations|Infos on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Leovegas Casino

… [Trackback]

[…] Read More here|Read More|Find More Infos here|There you can find 10952 additional Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

implants for teeth West Palm Beach FL

… [Trackback]

[…] Read More on|Read More|Read More Infos here|Here you will find 65452 more Infos|Informations on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Gar Herring

… [Trackback]

[…] Find More here|Find More|Find More Infos here|Here you can find 13899 more Infos|Informations to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Eavestrough Cleaning

… [Trackback]

[…] Read More here|Read More|Read More Informations here|Here you will find 43051 additional Informations|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

pezevenk

… [Trackback]

[…] Read More here|Read More|Read More Informations here|There you will find 63604 more Informations|Infos on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

devops online training in hyderabad

Nice Article. How it help to developer in terms of balance the day to day life.

job.odisha.net

… [Trackback]

[…] Read More here|Read More|Find More Informations here|There you can find 4999 additional Informations|Informations to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

italian dual citizenship

… [Trackback]

[…] Find More here|Find More|Read More Informations here|Here you can find 24185 more Informations|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

slot games

… [Trackback]

[…] Find More on|Find More|Find More Infos here|Here you will find 33334 additional Infos|Informations to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

masini inghetata

… [Trackback]

[…] Find More on|Find More|Read More Infos here|There you can find 38807 additional Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

mold removal

… [Trackback]

[…] Find More on|Find More|Find More Infos here|Here you can find 90237 more Infos|Informations on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Engineer Aws Alkhazraji

… [Trackback]

[…] Find More on|Find More|Find More Infos here|Here you will find 19101 more Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Hyderabad Corporate Event Managers

… [Trackback]

[…] Find More on|Find More|Find More Infos here|There you will find 58021 more Infos|Infos on that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

Buying a home in St George

… [Trackback]

[…] Read More on|Read More|Read More Infos here|Here you will find 8481 additional Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

DMPK

… [Trackback]

[…] Read More here|Read More|Find More Infos here|Here you will find 4232 more Infos|Infos to that Topic: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]

URL

… [Trackback]

[…] Find More Informations here: blog.rapidapi.com/2017/01/05/github-api-profile-automate-your-github-workflow/ […]


Leave a Comment

Tell us your thoughts!

Spread the API ❤️