← Back to team overview

launchpad-dev team mailing list archive

Re: Problem using Launchpad API to retrieve the authenticated user

 

Woops, my bad. I've changed that to refer to staging, but it's still having
the same 401 issue. If it helps, the response headers from launchpad are

Response headers: {
    Connection = "Keep-Alive";
    "Content-Encoding" = gzip;
    "Content-Length" = 64;
    "Content-Type" = "text/plain";
    Date = "Wed, 13 Mar 2013 09:14:49 GMT";
    "Keep-Alive" = "timeout=15, max=100";
    Server = "zope.server.http (HTTP)";
    Vary = "Accept-Encoding";
    Via = "1.1 api.staging.launchpad.net";
    "X-Powered-By" = "Zope (www.zope.org), Python (www.python.org)";
}


On 13 March 2013 00:04, William Grant <william.grant@xxxxxxxxxxxxx> wrote:

> On 13/03/13 10:50, Chris Wilson wrote:
> > Hi William,
> >
> > Thanks a lot for your reply. My request (I've revoked the OAuth
> > credentials) is
> >
> > Header data: {
> >     Accept = "application/json";
> >     "Accept-Encoding" = "gzip, deflate";
> >     "Accept-Language" = "en-us";
> >     Authorization = "OAuth
> > realm=\"https://api.launchpad.net/\
> ",oauth_consumer_key=\"Chris-Wilson-App-Key\",oauth_token=\"5CxXHrFKqn1fWsWMKXXH\",oauth_signature_method=\"PLAINTEXT\",oauth_signature=\"%26BVjq9NlhL1rH8FW8Fg1LM3kNskcQxFFhlh3pM5X6JXjcT8CJhNtJp5PGqVF6TZS3VKdNLqPk8NnmtZbz\",oauth_timestamp=\"1363127374\",oauth_nonce=\"xOUnK7gEirDkNuYE7hepGnaV24r6xTfp\",oauth_version=\"1.0\"";
> >     "Content-Type" = "application/json";
> > }
>
> You said you were sending a request to api.staging.launchpad.net, but
> that request mentions api.launchpad.net. A token for one will not work
> on the other.
>
>

Follow ups

References