Goodreads Developers discussion

26 views
questions > PUT request with Obj-C oauthconsumer

Comments Showing 1-5 of 5 (5 new)    post a comment »
dateUp arrow    newest »

message 1: by Craig (new)

Craig (cpjolicoeur) | 29 comments I know you guys use (or have used) oauthconsumer for your app.

I cant seem to figure out how to issue a PUT request with it.

I've tried [request setHTTPMethod:@"PUT"] to no avail

I also tried setting a requestParameter named "_method" with the value of "PUT" and that didnt work either


message 2: by Ettore (new)

Ettore Pasquini Here's a dirty secret: I don't really issue any PUT requests in our iOS app. I just use POSTs in their place. Try that perhaps? ;)

BTW: which API are you referring to? I do remember another developer complaining about a PUT API not working (i.e. broken on our servers - we'll fix it soon!), so I wonder if that's the reason instead.


message 3: by Craig (new)

Craig (cpjolicoeur) | 29 comments ok, I'll try the POST and report back.

The api call I'm trying to utilize is review.update

http://www.goodreads.com/review/.xml

The docs say the method must be called with PUT so thats all I've attempted so far


message 4: by Craig (new)

Craig (cpjolicoeur) | 29 comments and...

as you said, POST works fine. thanks, should have probably tried doing that in the first place


message 5: by Ettore (new)

Ettore Pasquini Glad that works. Yeah, that API is the one I was thinking at. I filed a ticket some days ago to fix it when doing a PUT.


back to top