Skip to content

PhotoPostExample authentication issue #113

Open
@KBIOS997

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");
                           }];

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions