Goodreads Developers discussion

198 views
questions > authorize mobile application

Comments Showing 1-12 of 12 (12 new)    post a comment »
dateDown arrow    newest »

message 1: by Karsten (new)

Karsten (strobaek) | 37 comments I'm in the process of building a mobile app towards Goodreads, but are having some issues with the oauth.

I first call
http://goodreads.com/oauth/authorize?....

I'm directed to the login page, but after I enter the login details and press Login, I'm forwarded to a page stating that "You Have Disallowed This Request".

Guess I'm doing something wrong.

Suggestions?


message 2: by Michael (new)

Michael Economy (michaeleconomy) Hmmm..... what programming language are you using? Are you using an oauth library? if so, which?


message 3: by Karsten (new)

Karsten (strobaek) | 37 comments Using .NET C# Silverlight (for Windows Phone 7.1)
Creating a WebBrowser and calling .Navigate(...)
Create a new EventHandler to "catch" the reply.
The first one is{https://www.goodreads.com/mobile/user...}
Second one looks like my original request.

Used the same method towards other OAuth REST Apis.

I am not using a oauth library.


message 4: by Michael (new)

Michael Economy (michaeleconomy) A failure will return that message (as well as a denial).

I'd bet the request might not be signed correctly.


I'd highly recommend using an oauth library, theres at least one goodreads windows 7 phone client out there, and i'm pretty sure he used a library.


message 5: by Ettore (new)

Ettore Pasquini Also I think there are a few more .NET users in this group, look around for their posts, I think some of them might have useful insights.


message 6: by Karsten (new)

Karsten (strobaek) | 37 comments Thanks. I'm begining to get this to work.

A somewhat unrelated question. It is possible somewhere to see what is returned if calling e.g. /updates/friends.xml.


message 7: by Ettore (new)

Ettore Pasquini If the call is OAuth only, there's no way around it beside getting it to work with OAuth. Otherwise if the API allows key-auth, you can just append a format=xml and key=YOURKEY to the params and see it your browser (as you can see in the api page sample URLs).

I'm not sure if I answered your question though, let me know if I misunderstood.


message 8: by Karsten (new)

Karsten (strobaek) | 37 comments Well, actually my question was about if there was any examples of the XML/JSON you actually got back from calls after you had been authenticated, e.g. to /updates/friends.xml.

I would like to design my classes, but I don't know/can't find any information of what they should look like. E.g.

{
"id":1,
"author": "bob",
"title": "all the things you didn't know about the goodreads api"
}


message 9: by Michael (new)

Michael Economy (michaeleconomy) We don't have any examples anywhere that i know of.


message 10: by Shawn (new)

Shawn | 23 comments Hey Karsten, let me know if you run into any other .NET issue with the Goodreads API, I'm also writing a WP7 Goodreads client and I've worked out most of the kinks in calling the API. Also I'd recommend grabbing the RestSharp library, it makes the whole OAuth and REST calls a snap.


message 11: by Louise (new)

Louise | 36 comments Karsten, there's no example of updates/friends.xml specifically because it requires OAuth but if you want a general example of what our responses look like, you can check out the non-OAuth calls on http://www.goodreads.com/api like this one:

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

If you sign up for an API key, then you'll be able to see the sample URLs for methods that don't require OAuth.


message 12: by Karsten (new)

Karsten (strobaek) | 37 comments Hi Shawn, I'm actually using RestSharp. I've run into another problem writte about here http://www.goodreads.com/topic/show/2...
Maybe you can help?

Thanks.


back to top