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

Not working #1

Open
ashishfission opened this issue Oct 4, 2012 · 13 comments
Open

Not working #1

ashishfission opened this issue Oct 4, 2012 · 13 comments

Comments

@ashishfission
Copy link

its didn't seem to be work?
How can i post something?

@pawartur
Copy link
Owner

pawartur commented Dec 2, 2012

Have you managed to authenticate and receive your tokens?

You can create posts with methods whose names start with "create"... E.g. createTextPostWithTitle:andBody:andState:andTags:inBlogWithName:usesMarkdown:delegate:

@will-districtnerds
Copy link

I too am not able to post a text or photo. I'm able to authenticate and receive my tokens. Any GET calls works for me like getting the user info or blog info. It's when I attempt a POST dependent call that the calls fail. I get an error but it's wrapped in a flat response which doesn't help. Are those errors wrapping the true response that is returned by the Tumblr API? I'd love to help you further develop this library if you want because it looks very promising.

UPDATE: I'm able to create a new text or photo post. I can't update an existing post though.

@pawartur
Copy link
Owner

pawartur commented Dec 3, 2012

The flat response is just a simple wrapper around Tumblr API's response. It has a meta attribute which is a dictionary and where you should find all the relevant information in case of an error.

Please, let me know what kind of an error you get when trying to update a post, because it seems to work fine for me.

@will-districtnerds
Copy link

When updating a post I get a 401 Unauthorized. I use the post id from the web version of the tumblr blog.

@pawartur
Copy link
Owner

pawartur commented Dec 3, 2012

Will, I've invited you to my Tumblr blog artur-experimental (I used your e-mail address listed on GitHub). I have a post there that I've successfully edited with the manager with the following code.

In my tumblrAPIv2Manager:didAuthenticateAndReceivedAccessToken:andAccessTokenSecret:

[[AWTumblrAPIv2Manager sharedManager] editTextPostWithId:@37123433058
                                                withNewTitle:nil
                                                  andNewBody:@"Changed body"
                                                 andNewState:TumblrPostStateDefault
                                                  andNewTags:nil
                                              inBlogWithName:@"artur-experimental"
                                                usesMarkdown:YES
                                                    delegate:self];

Could you, please, give it a try yourself and let me know, if you get 401 here as well?

@will-districtnerds
Copy link

is that post id an NSString? FYI, I've been passing an NSNumber.

@pawartur
Copy link
Owner

pawartur commented Dec 3, 2012

It's an NSNumber. This is just the new literal syntax.

@will-districtnerds
Copy link

can you add [email protected] as the email address instead?

@pawartur
Copy link
Owner

pawartur commented Dec 6, 2012

Done!

@will-districtnerds
Copy link

This is the error I'm getting from RestKit.

Read response body: {"meta":{"status":401,"msg":"Not Authorized"},"response":[]}
2012-12-08 10:07:01.865 Furnish Now[59787:c07] T restkit.network.queue:RKRequestQueue.m:465:-[RKRequestQueue processRequestDidLoadResponseNotification:] Received notification: NSConcreteNotification 0x12e7a9c0 {name = RKRequestDidLoadResponseNotification; object = <RKObjectLoader: 0xc442820>; userInfo = {
response = "<RKResponse: 0xc3bb9e0>";
}}

@pawartur
Copy link
Owner

pawartur commented Dec 8, 2012

Can You edit this post via www?

@will-districtnerds
Copy link

Viewing that blog I don't see the option to manage that post like edit or delete

@pawartur
Copy link
Owner

pawartur commented Dec 9, 2012

I could try to give you admin rights to this blog then, but I don't see you on the list of members. Are you sure you'd received my invitation e-mail and followed the instructions?

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

3 participants