Hello Everyone, I am trying to write a C#.NET wrapper over the Launchpad API. I would like to make it such a way that it can be used on any platform, well that is for the later stages. Just for the time being I want to create a .NET managed DLL under Open License which can be used by any windows programmer. This effort might even promote the usage of Launchpad amongst windows users.
Right now I am stuck up with 401 errors even though I have followed all the steps specified in https://help.launchpad.net/API/SigningRequests I am even authorizing the oauth_token by visiting https://edge.launchpad.net/+authorize-token?oauth_token={oauth_token} My code is here -- http://pastebin.com/Q9quPF7j C# code is readable, so I think people should not have problems with it. Any case I am here to tell people what I am trying to do. The most mysterious thing comes up when I try to debug by sniffing through Fiddler (A proxy for windows) When requesting token ================== REQUEST: POST https://edge.launchpad.net/+request-token HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: edge.launchpad.net Content-Length: 79 Expect: 100-continue Connection: Keep-Alive oauth_consumer_key=LpSharp&oauth_signature_method=PLAINTEXT&oauth_signature=%26 RESPONSE: HTTP/1.1 200 Ok Date: Thu, 18 Mar 2010 19:44:38 GMT Server: zope.server.http (HTTP) X-Powered-By: Zope (www.zope.org), Python (www.python.org) X-Content-Type-Warning: guessed from content Content-Type: text/plain;charset=utf-8 Content-Length: 132 Vary: Cookie,Authorization,Accept-Encoding Via: 1.1 edge.launchpad.net Keep-Alive: timeout=15, max=100 Connection: Keep-Alive oauth_token=9X2KcwlDzPX0s4B655Lh&oauth_token_secret=Z4FnPfffTV5FVWlXfhZ2P97728l8qKr2v4cSM4B4kfgV7SL3XN16qpcSL0k9vwz16B1D51F1P6ZBg0HM When Accessing Token ==================== REQUEST: POST https://edge.launchpad.net/+access-token HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: edge.launchpad.net Content-Length: 192 Expect: 100-continue oauth_signature=%26Z4FnPfffTV5FVWlXfhZ2P97728l8qKr2v4cSM4B4kfgV7SL3XN16qpcSL0k9vwz16B1D51F1P6ZBg0HM&oauth_consumer_key=LpSharp&oauth_token=9X2KcwlDzPX0s4B655Lh&oauth_signature_method=PLAINTEXT RESPONSE: HTTP/1.1 200 Ok Date: Thu, 18 Mar 2010 19:45:08 GMT Server: zope.server.http (HTTP) X-Powered-By: Zope (www.zope.org), Python (www.python.org) X-Content-Type-Warning: guessed from content Content-Type: text/plain;charset=utf-8 Content-Length: 148 Vary: Cookie,Authorization,Accept-Encoding Via: 1.1 edge.launchpad.net oauth_token=dSVcpThjKlhrk3wzkZtg&oauth_token_secret=XVtGgLJxjWmKsq9RTkLvrvhHGkgrRCVczrsRrzb3tWqsPJck9DGxVHWrnLQh58vfLtdbwmnFNLHRxtHM&lp.context=None When Requesting anything ========================= REQUEST: GET https://api.staging.launchpad.net/beta/bugs/11 HTTP/1.1 Authorization: OAuth realm="https://api.launchpad.net/ ",oauth_consumer_key="LpSharp",oauth_token="dSVcpThjKlhrk3wzkZtg",oauth_signature_method="PLAINTEXT",oauth_signature="%26XVtGgLJxjWmKsq9RTkLvrvhHGkgrRCVczrsRrzb3tWqsPJck9DGxVHWrnLQh58vfLtdbwmnFNLHRxtHM",oauth_timestamp="1268961329",oauth_nonce="395403630",oauth_version=1.0 Accept: application/json Host: api.staging.launchpad.net RESPONSE: HTTP/1.1 401 Unauthorized Date: Thu, 18 Mar 2010 19:46:00 GMT Server: zope.server.http (HTTP) X-Powered-By: Zope (www.zope.org), Python (www.python.org) X-Lazr-Oopsid: OOPS-1538S458 Content-Type: text/plain Content-Length: 44 Via: 1.1 wildcard.staging.launchpad.net Unknown access token (dSVcpThjKlhrk3wzkZtg). A good thing to note is that I am using the same *oauth_token* and *oauth_token_secret* in 3rd step which I got from 2nd step. Still I get a 401
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-users Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-users More help : https://help.launchpad.net/ListHelp

