Created
May 20, 2013 20:51
-
-
Save cwoodcox/5615444 to your computer and use it in GitHub Desktop.
problem with a hubot plugin
This file contains hidden or 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 -H "Accept: application/json" \ | |
| > -u :$HEROKU_API_TOKEN \ | |
| > -d "collaborator[email]=corey%2Ewoodcox%40gmail%2Ecom" \ | |
| > -X POST https://api.heroku.com/apps/oc-little-nellie-prod/collaborators | |
| corey.woodcox@gmail.com added as a collaborator on oc-little-nellie-prod. |
This file contains hidden or 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
| msg.robot.http("https://api.heroku.com/apps/#{app}/collaborators") | |
| .headers(Authorization: auth, Accept: 'application/json') | |
| .post("collaborators[email]=corey%2Ewoodcox%40gmail%2Ecom") (err, res, body) -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment