Skip to content

Instantly share code, notes, and snippets.

@tokunami
Created December 8, 2015 01:34
Show Gist options
  • Save tokunami/320c39b10b9310d28584 to your computer and use it in GitHub Desktop.
Save tokunami/320c39b10b9310d28584 to your computer and use it in GitHub Desktop.
$ curl -u 'username' -d '{"scopes":["repo"],"note":"Help example"}' https://api.github.com/authorizations
Enter host password for user 'username':
{
  "id": ,
  "url": "",
  "app": {
    "name": "Help example",
    "url": "https://developer.github.com/v3/oauth_authorizations/",
    "client_id": "00000000000000000000"
  },
  "token": "",
  "hashed_token": "",
  "token_last_eight": "",
  "note": "Help example",
  "note_url": null,
  "created_at": "",
  "updated_at": "",
  "scopes": [
    "repo"
  ],
  "fingerprint": null
}

https://help.github.com/articles/creating-an-oauth-token-for-command-line-use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment