Created
December 6, 2011 05:57
-
-
Save tsabat/1436945 to your computer and use it in GitHub Desktop.
github post API Key
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
#This must be run from your .ssh dir, otherwise specify full path for the cat call | |
curl -u "tbone/token:{token_here}" \ | |
http://code.corp.surveymonkey.com/api/v2/json/user/key/add/ \ | |
--include \ | |
--data title={your_title} \ | |
--data key=$(python -c "import urllib; print urllib.quote('''$(cat id_rsa.pub | sed s/'+'/'%2B'/g)''')") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment