Skip to content

Instantly share code, notes, and snippets.

@svisamsetty
Created July 14, 2015 15:59
Show Gist options
  • Save svisamsetty/04c80384bb10a1fccc20 to your computer and use it in GitHub Desktop.
Save svisamsetty/04c80384bb10a1fccc20 to your computer and use it in GitHub Desktop.
oauth2_bitbucket_ssh_key
<- "POST /1.0/users/svisamsetty/ssh-keys HTTP/1.1\r\nAuthorization: Bearer xxxx==\r\nConnection: close\r\nHost: api.bitbucket.org\r\nContent-Length: 459\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n"
<- "key=ssh-rsa%20AAAAB3NzaC1yc2EAAAADAQABAAABAQDNW5dCWEjhutA31QiQBq72k11TcWEmuc8Rb%2FrQVkEwNSRwbVol9fT2ZqhkuGjuTPSGHt%2BEYsp9anC8SEMY%2FuUx%2FELSjoO5yvQJyIcmpvco%2BPJbqb9TzY%2FHH14%2B5txEJVVLOIyWkCpqQzoAcRfLMGevuv%2FEjKKKIg1WOclnE4s1dYQRpVWpgpZvvEvoW7WwRvgeWt4aAW8WNLZ4o5X%2Fl%2BY0CsmwwR6USxpCLqBfQHhu5VNQ1sypNMbRyUkescqaJIZmubVOY6PheJTSJIudRY96IfuOMFNLH5GLtmBGpMmIKooCzXq5vx9PCrzaovMmKYVFovKGC0SG%2Fw9JOvP22NSZ%20svisamsetty%40Shyams-MacBook-Pro.local%0A&label="
-> "HTTP/1.1 404 NOT FOUND\r\n"
-> "Server: nginx/1.6.2\r\n"
-> "Date: Tue, 14 Jul 2015 15:47:01 GMT\r\n"
-> "Content-Type: text/plain; charset=utf-8\r\n"
-> "Content-Length: 71\r\n"
-> "Connection: close\r\n"
-> "X-Served-By: app-104\r\n"
-> "X-Render-Time: 0.226893901825\r\n"
-> "Content-Language: en\r\n"
-> "X-Static-Version: 4cef518fdf8b\r\n"
-> "Vary: Authorization, Accept-Language, Cookie\r\n"
-> "bbuserid: 1680795\r\n"
-> "X-Version: 4cef518fdf8b\r\n"
-> "ETag: \"277d9861243763e579a650af3e672d7b\"\r\n"
-> "X-Request-Count: 254\r\n"
-> "X-View-Name: bitbucket.apps.sshkey.api.v10.handlers.SSHKeyHandler\r\n"
-> "X-Frame-Options: SAMEORIGIN\r\n"
-> "X-OAuth-Scopes: webhook, repository:admin, repository:write, team:write, email\r\n"
-> "X-Accepted-OAuth-Scopes: account:write\r\n"
-> "bbusername: svisamsetty\r\n"
-> "X-Usage-User-Time: 0.177164\r\n"
-> "X-Usage-System-Time: 0.046104\r\n"
-> "X-Usage-Input-Ops: 0\r\n"
-> "X-Usage-Output-Ops: 0\r\n"
-> "\r\n"
reading 71 bytes...
-> "This API has been deprecated and is not available through OAuth2 or JWT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment