Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created May 20, 2013 20:51
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 cwoodcox/5615444 to your computer and use it in GitHub Desktop.
Save cwoodcox/5615444 to your computer and use it in GitHub Desktop.
problem with a hubot plugin
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.
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