Skip to content

Instantly share code, notes, and snippets.

@markpasc
Created November 15, 2010 19:02
Show Gist options
  • Save markpasc/700783 to your computer and use it in GitHub Desktop.
Save markpasc/700783 to your computer and use it in GitHub Desktop.
TypePad OAuth Authorization header in protected resource requests
GET /users/@self.json HTTP/1.0
Host: api.typepad.com
Authorization: OAuth realm="", oauth_nonce="95331075", oauth_timestamp="1289847587", oauth_consumer_key="649e9c735a549ead", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="lNE79f2DGUGSzaqB", oauth_signature="Fvo3W7X8It6b8xeR9SacmUfsWKI%3D"
POST /blogs/6a011cd6cc97c903b5011cd6cc97ce03b5/add-category.json HTTP/1.0
Host: api.typepad.com
Content-Length: 19
content-type: application/json
Authorization: OAuth realm="", oauth_nonce="65782695", oauth_timestamp="1289848090", oauth_consumer_key="649e9c735a549ead", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="lNE79f2DGUGSzaqB", oauth_signature="ICDKI9SEvFPE5V5eKOQ%2BWyjKoCo%3D"
{"category": "moo"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment