-
-
Save gonegreen/8c0595a1c54f1b76ecbd to your computer and use it in GitHub Desktop.
Nodejitsu private repo deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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