Posted over 8 years ago. Visible to the public.

Get GitHub API oauth token with curl.

If you're running a non web app on the github api you can simply get the auth token for it (if you have configured in your account under applications of course) by running the following curl command.

% curl -i -u "username:password" \ \ -d '{"client_id":"APP_CLIENT_ID", "client_secret":"APP_CLIENT_SECRET"}'

Beware that you'll have to escape some shell sensitive special characters that may be in you password.

Owner of this card:

Last edit:
over 8 years ago
Posted by jan0sch to jan0sch's deck
This website uses short-lived cookies to improve usability.
Accept or learn more