Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem requesting access token
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aur0n  
View profile  
 More options Sep 28 2011, 9:49 am
From: aur0n <fondam...@gmail.com>
Date: Wed, 28 Sep 2011 06:49:15 -0700 (PDT)
Local: Wed, Sep 28 2011 9:49 am
Subject: Problem requesting access token
Hello there,
I've recently trying to use GetGlue's API. I'm stuck with the first
authentication: with basic requests (friends list, profile info, etc),
everything works fine. With actions, on the other hand, I get as
response a 401 Unauthorized.

I'm using signpost library (http://code.google.com/p/oauth-signpost/)
and this is the code: http://pastebin.com/u8WZGbve

Any suggetions would be really appreciated.

Thanks for your time.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Teng (GetGlue)  
View profile   Translate to Translated (View Original)
 More options Sep 28 2011, 10:29 am
From: "Karen Teng (GetGlue)" <ka...@getglue.com>
Date: Wed, 28 Sep 2011 10:29:41 -0400
Local: Wed, Sep 28 2011 10:29 am
Subject: Re: Problem requesting access token

Hi there,

It could be that we are not recognizing what object maps to
http://www.amazon.com/dp/B001P9KR8U/

If you pass in something else into objectId, like
objectId=tv_shows/true_blood, does that work?

- Karen

--
Karen Teng
VP of Engineering
http://getglue.com

GetGlue:   http://getglue.com/TengFactor
LinkedIn:  http://www.linkedin.com/in/karenteng

We are hiring! http://getglue.com/ <http://getglue.com/about>jobs


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aur0n  
View profile  
 More options Sep 28 2011, 10:55 am
From: aur0n <fondam...@gmail.com>
Date: Wed, 28 Sep 2011 07:55:25 -0700 (PDT)
Local: Wed, Sep 28 2011 10:55 am
Subject: Re: Problem requesting access token
Hi Karen,
thanks for your fast reply.

I changed the URL to "http://api.getglue.com/v2/user/addLike?
objectId=objectId=tv_shows/true_blood" but nothing changes. The
library returns me "ERROR:
oauth.signpost.exception.OAuthCommunicationException: Communication
with the service provider failed: Server returned HTTP response code:
401 for URL: http://api.getglue.com/oauth/access_token"

This problem is driving me crazy. :S

On Sep 28, 4:29 pm, "Karen Teng (GetGlue)" <ka...@getglue.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Teng (GetGlue)  
View profile  
 More options Sep 28 2011, 11:14 am
From: "Karen Teng (GetGlue)" <ka...@getglue.com>
Date: Wed, 28 Sep 2011 11:14:04 -0400
Local: Wed, Sep 28 2011 11:14 am
Subject: Re: Problem requesting access token

Seems like there's an extra objectId in your url. It should be

http://api.getglue.com/v2/user/addLike?objectId=tv_shows/true_blood&{other
params}

Are you signing the request with the access token of the user?

--
Karen Teng
VP of Engineering
http://getglue.com

GetGlue:   http://getglue.com/TengFactor
LinkedIn:  http://www.linkedin.com/in/karenteng

We are hiring! http://getglue.com/ <http://getglue.com/about>jobs


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aur0n  
View profile  
 More options Sep 28 2011, 11:19 am
From: aur0n <fondam...@gmail.com>
Date: Wed, 28 Sep 2011 08:19:53 -0700 (PDT)
Local: Wed, Sep 28 2011 11:19 am
Subject: Re: Problem requesting access token
Thanks, didn't notice the double objectId. :S

The problem persists, and, honestly, I'm not sure how to sign che
access token. All I know is that with

provider.retrieveRequestToken(consumer, OAuth.OUT_OF_BAND);
(see the pastebin link above for the whole code)

it gains the primary authorization, so I guessed that

provider.retrieveAccessToken(consumer, OAuth.OUT_OF_BAND);

would do the same job for the secondary authorization... damn. :(

On Sep 28, 5:14 pm, "Karen Teng (GetGlue)" <ka...@getglue.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
melban  
View profile  
 More options Oct 27 2011, 7:20 am
From: melban <mel...@gmail.com>
Date: Thu, 27 Oct 2011 04:20:05 -0700 (PDT)
Local: Thurs, Oct 27 2011 7:20 am
Subject: Re: Problem requesting access token
I found two issues yesterday that might be effecting you also.  When I
tried to do my authentication the Request, Authorization and Access
URL's had to be "http".  When I used the listed URLs and their "https"
protocol it did not work I got a 403 error.  When I changed it started
sending the requests just fine.

I also found an issue where I don't have a callback URL defined in the
GetGlue API system.  I instead have to pass a callback in the URL.
GetGlue is not honoring this URL and instead is not sending the token
back to my callback URL.

Hope that helps.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »