To answer my own questions,
1. The error was "invalid signature." I believe it's because of the OAuth Library that I'm using. When tested with [[ http://developer.netflix.com/resources/OAuthTest ]], I was able to add to queue.
2.The access token received does not need to be updated every time fetching the user's information. Unless the user logged out, user changed, timed out etc.
So I tried using the OAuthSimple, but I still get invalid signature.
After searching around it seems like we need to encode the url twice.
However, I tried that as well as encoding different parts in different orders (now can't remember what I tried).
Does anybody have a good guide on how to encode correctly?
Can you make valid Netflix catalog queries with OAuthSimple? If not, I've recently worked through this myself, and put up a long-ish list of mistakes I made on the way to making OAuth work, here:
[[http://kentbrewster.com/oauth-confessions]]
If you can make catalog queries your signing methods are okay. When you sign in to your own application through the OAuth login page, can you go back to your Netflix profile, here:
Thanks for your help.
I updated my version of OAuthSimple and it now works perfectly.
But here are my answers:
- I can see that my application is listed under ThirdPartyAccess.
- I'm using the Javascript version.
- Using the OAuthSimple().sign() to obtain the signed_url
- Didn't escape the title
So I have been stuck at this point for a while already and I can't figure it out.
Please help!
I'm using Flex, REST, and RSS.
If I'd like to add the movie Storm Cell to the user's queue, does the following url look right
http://api.netflix.com/users/<userID>/queues/disc
?format=dvd
&oauth_consumer_key=<consumerkey>
&oauth_nonce=<nonce>
&oauth_signature=FGaLL51zkfPzN6DUlMNo4s9My3Y%3D
&oauth_signature_method=HMAC-SHA1
&oauth_timestamp=1240894882
&oauth_token=<token>
&title_ref=http%3A%2F%2Fapi.netflix.com%2Fcatalog%2Ftitles%2Fmovies%2F70114456
I got this error:
rror #2032: Stream Error.
Another question is, do I need to request for a new access token for creating a signature everytime?
Thank you!
Message edited by Cecilia 3 years ago
Tags
Cecilia – 3 years ago
To answer my own questions,
1. The error was "invalid signature." I believe it's because of the OAuth Library that I'm using. When tested with [[ http://developer.netflix.com/resources/OAuthTest ]], I was able to add to queue.
2.The access token received does not need to be updated every time fetching the user's information. Unless the user logged out, user changed, timed out etc.
Kent Brewster – 3 years ago
Thanks for following up, Cecilia. Fast work!
Cecilia – 3 years ago
So I tried using the OAuthSimple, but I still get invalid signature.
After searching around it seems like we need to encode the url twice.
However, I tried that as well as encoding different parts in different orders (now can't remember what I tried).
Does anybody have a good guide on how to encode correctly?
Kent Brewster – 3 years ago
Some troubleshooting questions:
Can you make valid Netflix catalog queries with OAuthSimple? If not, I've recently worked through this myself, and put up a long-ish list of mistakes I made on the way to making OAuth work, here:
[[http://kentbrewster.com/oauth-confessions]]
If you can make catalog queries your signing methods are okay. When you sign in to your own application through the OAuth login page, can you go back to your Netflix profile, here:
[[http://www.netflix.com/ThirdPartyAccess]]
... and see that you are successfully signed in?
JR Conlin – 3 years ago
A few more questions:
Are you using the Javascript or PHP version of OAuthSimple? (I made a patch to the javascript one recently.)
Are you using just the returned signature or are you using the signed_url value from the returned hash?
Are you pre-escaping the title before you submit it or are you sending the title through unescaped?
Cecilia – 3 years ago
Thanks for your help.
I updated my version of OAuthSimple and it now works perfectly.
But here are my answers:
- I can see that my application is listed under ThirdPartyAccess.
- I'm using the Javascript version.
- Using the OAuthSimple().sign() to obtain the signed_url
- Didn't escape the title
Thanks again =D.
JR Conlin – 3 years ago
Glad to hear it's working and sorry for the trouble earlier.
I really wish that github had a way to let folks who are using that library know there's a new version out.