iphone Programming Glossary: oauth_header
Having problems with uploading photos to TwitPic using OAuth in Objective C on the iPhone http://stackoverflow.com/questions/2959490/having-problems-with-uploading-photos-to-twitpic-using-oauth-in-objective-c-on-t from here Example iPhone app using OAuth Here is my code NSString url @ http api.twitpic.com 2 upload.json NSString oauth_header oAuth oAuthHeaderForMethod @ POST andUrl url andParams nil NSLog @ OAuth header @ n n oauth_header ASIFormDataRequest request.. NSString oauth_header oAuth oAuthHeaderForMethod @ POST andUrl url andParams nil NSLog @ OAuth header @ n n oauth_header ASIFormDataRequest request ASIFormDataRequest requestWithURL NSURL URLWithString url request addRequestHeader @ User Agent.. api.twitter.com 1 account verify_credentials.json request addRequestHeader @ X Verify Credentials Authorization value oauth_header NSData imageRepresentation UIImageJPEGRepresentation imageToUpload 0.8 request setData imageRepresentation forKey @ media..
|