Skip to content

Instantly share code, notes, and snippets.

@bradleylin
Created October 13, 2011 17:19
Show Gist options
  • Save bradleylin/1284849 to your computer and use it in GitHub Desktop.
Save bradleylin/1284849 to your computer and use it in GitHub Desktop.
OAConsumer *consumer = [[OAConsumer alloc] initWithKey:"consumer_key"
secret:"consumer_secret"];
OAMutableURLRequest *oauthrequest =
[[OAMutableURLRequest alloc] initWithURL:"request_url"
consumer:consumer
token:token
realm:nil
signatureProvider:[[OAHMAC_SHA1SignatureProvider alloc]init]];
[oauthrequest setHTTPMethod:@"http_method"];
[oauthrequest prepare];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment