Goodreads Developers discussion
questions
>
authorize mobile application
date
newest »
newest »
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.
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.
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.
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.
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.
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"
}
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.
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.
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.


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?