Using with tumblr returns 404

Oct 13, 2011 at 10:17 PM
Hey,

im trying to integrate a Windows Phone 7 app with tumblr using this cool library

I have my app set up with a consumer key + secret, and I am using the
following C# code to request a token

private void doRequestToken()
{
var authorizer = new OAuthAuthorizer(ConsumerKey,
ConsumerSecret);
authorizer.GetRequestToken("http://www.tumblr.com/oauth/
request_token")
.Select(res => res.Token)
.ObserveOnDispatcher()
.Subscribe(token =>
{
requestToken = token;
var url = authorizer.BuildAuthorizeUrl("http://
www.tumblr.com/oauth/authorize", token);
webBrowser1.Navigate(new Uri(url));
}, ex => MessageBox.Show(ReadWebException(ex)));

}

private string ReadWebException(Exception e)
{
var ex = e as WebException;
if (ex != null)
{
using (var stream = ex.Response.GetResponseStream())
using (var sr = new StreamReader(stream))
{
return sr.ReadToEnd();
}
}
else return e.ToString();
}

note that webBrowser1 is the out of box browser control.

When doRequestToken is fired, I am taken to the tumblr page, I sign in
and it brings up the Authorize App page as expected. However, when i
click "Authorize" I get a 404 error screen...I was expecting some sort
of PIN number for the user to enter into the app.

i'm new to Tumblr development so apologies if what I am expecting to
happen isn't the way the API works

many thanks!

Kris

Coordinator
Nov 17, 2011 at 8:46 AM

I'm sorry to be late.
Because notification was off.
I'm careful from now on.

Please wait a little.
I answer it later.