Created
September 19, 2012 19:09
-
-
Save ralphbean/3751580 to your computer and use it in GitHub Desktop.
Try to subscribe to another github users events and fail..
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
| #!/bin/bash | |
| # Subscribe to my own repo's events as me | |
| # This succeeds with a 204. | |
| curl -u "ralphbean" -i \ | |
| https://api.github.com/hub \ | |
| -F "hub.mode=subscribe" \ | |
| -F "hub.topic=https://github.com/ralphbean/pyrasite/events/push" \ | |
| -F "hub.callback=http://requestb.in/wxgbx8wx" | |
| # Subscribe to another developer's repo's events as me | |
| # This fails with 422 Unprocessable Entity | |
| curl -u "ralphbean" -i \ | |
| https://api.github.com/hub \ | |
| -F "hub.mode=subscribe" \ | |
| -F "hub.topic=https://github.com/lmacken/pyrasite/events/push" \ | |
| -F "hub.callback=http://requestb.in/wxgbx8wx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment