Skip to content

Commit

Permalink
Merge pull request streaak#33 from Rhynorater/master
Browse files Browse the repository at this point in the history
Adding check of scopes for GH token
  • Loading branch information
streaak authored Jun 14, 2019
2 parents 17732d7 + 38976bc commit bb91423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ Requires a **custom token**, and an **API key**.

## [Github Token](https://developer.github.com/v3/)
```
curl -s -u "hehe:TOKEN_HERE" https://api.github.com/user
curl -s -u "user:apikey" https://api.github.com/user
curl -s -H "Authorization: token TOKEN_HERE" "https://api.github.com/users/USERNAME_HERE/orgs"
curl "https://api.github.com/rate_limit" -i -u "user:apikey" | grep "X-OAuth-Scopes:" # Check scope of your api token
```

## [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)
Expand Down

0 comments on commit bb91423

Please sign in to comment.