Description
we are run PhotoPostExample with tumblr library with photo upload from device we got "Error Domain=Request failed Code=401 "(null)”” error.
[TMAPIClient sharedInstance].OAuthConsumerKey = @"... .....";
[TMAPIClient sharedInstance].OAuthConsumerSecret = @"... ....";
[TMAPIClient sharedInstance].OAuthToken = @"... ....";
[TMAPIClient sharedInstance].OAuthTokenSecret = @"... ....";
[[TMAPIClient sharedInstance] photo:@"404pik.tumblr.com"
filePathArray:@[[[NSBundle mainBundle] pathForResource:@"blue" ofType:@"png"]]
contentTypeArray:@[@"image/png"]
fileNameArray:@[@"blue.png"]
parameters:@{@"caption" : @"Caption"}
callback:^(id response, NSError error) {
if (error)
NSLog(@"Error posting to Tumblr");
/ bellow error return...
Error Domain=Request failed Code=401 "(null)”” error.
*/
else
NSLog(@"Posted to Tumblr");
}];