Bearer logo

Quickly use GitHub 's API to build your own integration

  • Call the GitHub API in 2 minutes
  • Integrate into your App with our universal API client
  • Out-of-the-box managed OAuth2 flow & credentials
  • Transform and extend GitHub's API with custom built functions
  • Log every API call to GitHub with end-to-end trace
  • Manage all your API usage from Bearer's Dashboard

Call the GitHub API with Bearer client

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('github')
.auth('AUTH_ID') // Check the code in the box below to learn more about identity
.get('/user/repos')
.then(({ data }) => console.log(data))
.catch(e => console.log(e))

Ask for the GitHub identity of your users

HTML/JSReact
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to GitHub
</button>
<script>
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
bearerClient
.connect(
'github'
)
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)
})
}
</script>

In one click, you can also generate an identity using your own GitHub account directly from the Dashboard

Manage & Monitor

Credentials

Manage API credentials in a central place, rotate them in one click.

Logs

Automatically log every API call, find errors and debug in a snap with end-to-end trace.

Transform & extend APIs

Create functions to transform and re-expose APIs according to your needs.

Featured APIs

Bearer - Universal API Client

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedInBearer is on Medium
© Copyright Bearer 2019