Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhotoPostExample authentication issue #113

Open
KBIOS997 opened this issue Mar 17, 2016 · 9 comments
Open

PhotoPostExample authentication issue #113

KBIOS997 opened this issue Mar 17, 2016 · 9 comments

Comments

@KBIOS997
Copy link

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");
                           }];
@ykws
Copy link

ykws commented Jun 22, 2017

I have a different error.

callback return TMTumblrSDKErrorDomain.

{
  "TMTumblrSDKHTTPStatusCodeErrorKey" : 404,	
  "NSLocalizedDescription" : "Request failed."	
}

@ykws
Copy link

ykws commented Jun 22, 2017

Success authenticate and userInfo .
Failed photo .

@ykws
Copy link

ykws commented Jun 22, 2017

Forgot to fill in my blog name, so right that return not found.
But even if that, callback return TMTumblrSDKErrorDomain.
HTTP status code changed from 404 to 400 .

{
  "TMTumblrSDKHTTPStatusCodeErrorKey" : 400,	
  "NSLocalizedDescription" : "Request failed."	
}

and response.

{
  "erros": [
    {
      "errros": "Error uploading photo."
    }
  ]
}

@ykws
Copy link

ykws commented Jun 22, 2017

Similar to #36

@ykws
Copy link

ykws commented Jun 22, 2017

Similar to #65

@ykws
Copy link

ykws commented Jun 23, 2017

Success text .

@ykws
Copy link

ykws commented Jun 23, 2017

Success post when type is photo , parameters has data64 and encoded base 64 image.
Broken photo ?

@ykws ykws mentioned this issue Jun 23, 2017
@ykws
Copy link

ykws commented Jun 23, 2017

@senjaliya1989 try it merge #132

@KBIOS997
Copy link
Author

KBIOS997 commented Jun 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants