Skip to content

Instantly share code, notes, and snippets.

@gonegreen
Created June 18, 2013 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gonegreen/8c0595a1c54f1b76ecbd to your computer and use it in GitHub Desktop.
Save gonegreen/8c0595a1c54f1b76ecbd to your computer and use it in GitHub Desktop.
Nodejitsu private repo deploy
curl -X PUT -u testuser http://api.nodejitsu.com/users/testuser/tokens/github
Enter host password for user 'testuser':
{"operation":"update","github":"aaabbbbccccddd"}
curl -X POST -u testuser https://webhooks.nodejitsu.com/1/auth/github -H "Content-type: application/json" --data '{ "credentials": "foo:bar" }'
Lotus:Store Yashua$ curl -X POST -u testuser https://webhooks.nodejitsu.com/1/auth/github -H "Content-type: application/json" --data '{ "credentials": "testuser:foo" }'
Enter host password for user 'testuser':
{"ok":true,"token":{"token":{"provider":"github","token":"123456","app":"*","originalResponse":{"id":23337286,"url":"https://api.github.com/authorizations/2827286","app":{"name":"Nodejitsu Webhooks API (API)","url":"https://webhooks.nodejitsu.com","client_id":"dfdfdfdfdf"},"token":"123456","note":"Nodejitsu Webhooks API","note_url":"https://webhooks.nodejitsu.com","created_at":"2013-06-18T01:13:21Z","updated_at":"2013-06-18T01:13:21Z","scopes":["repo"]},"generatedBy":"webhook-api"}}}L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment