You should post this message to the Netflix support forum:
http://developer.netflix.com/forum/topics/27646

I might also suggest this topic:

http://developer.netflix.com/forum/read/27647

This list is for general discussion of OAuth, rather than specific
implementations.

Cheers!

On Mon, Sep 7, 2009 at 9:02 AM, Smelly Eddie <[email protected]> wrote:

>
> I am trying to develop a java app to use netflix. and I can get the
> login page to show to the userm, but I dont get any PIN, just a bad
> URL.
>
> import java.io.BufferedReader;
> import java.io.InputStreamReader;
> import java.net.HttpURLConnection;
> import java.net.URL;
>
> import oauth.signpost.OAuth;
> import oauth.signpost.OAuthConsumer;
> import oauth.signpost.OAuthProvider;
> import oauth.signpost.basic.DefaultOAuthConsumer;
> import oauth.signpost.basic.DefaultOAuthProvider;
> import oauth.signpost.signature.SignatureMethod;
>
> public class httpConn {
>
>    public static void main(String[] args) throws Exception {
>
>        OAuthConsumer consumer = new DefaultOAuthConsumer(
>                "wkrcvsb5d46534ndk78gt449z",
>                "mD9nhf6dsvn6dsS",
>                SignatureMethod.HMAC_SHA1);
>
>        OAuthProvider provider = new DefaultOAuthProvider(consumer,
>                "http://api.netflix.com/oauth/request_token";,
>                "http://api.netflix.com/oauth/access_token";,
>                "https://api-user.netflix.com/oauth/login";);
>
>        System.out.println("Fetching request token from Netflix...");
>
>        // we do not support callbacks, thus pass OOB
>        String authUrl = provider.retrieveRequestToken
> ( OAuth.OUT_OF_BAND);
>
>        System.out.println("Request token: " + consumer.getToken());
>        System.out.println("Token secret: " + consumer.getTokenSecret
> ());
>
>        System.out.println("Now visit:\n" + authUrl +
>
> "&application_name=FlixMan&oauth_consumer_key=wkrchcgs87dcdcnj7h7dgt449z&oauth_consumer_key=mD8677dssS"
>                + "\n... and grant this app authorization");
>
> // This url works, but after clicking "Link Application" I get a bad
> page with OOB as the address. How do I sety out of band for netflix??
>
>
>        System.out.println("Enter the PIN code and hit ENTER when
> you're done:");
>
>        BufferedReader br = new BufferedReader(new InputStreamReader
> (System.in));
>        String pin = br.readLine();
>
>        System.out.println("Fetching access token from Twitter...");
>
>        provider.retrieveAccessToken(pin);
>
>        System.out.println("Access token: " + consumer.getToken());
>        System.out.println("Token secret: " + consumer.getTokenSecret
> ());
>
>        URL url = new URL("http://twitter.com/statuses/mentions.xml";);
>        HttpURLConnection request = (HttpURLConnection)
> url.openConnection();
>
>        consumer.sign(request);
>
>        System.out.println("Sending request to Twitter...");
>        request.connect();
>
>        System.out.println("Response: " + request.getResponseCode() +
> " "
>                + request.getResponseMessage());
>    }
> }
> >
>


-- 
Chris Messina
Open Web Advocate

Personal: http://factoryjoe.com
Follow me on Twitter: http://twitter.com/chrismessina

Citizen Agency: http://citizenagency.com
Diso Project: http://diso-project.org
OpenID Foundation: http://openid.net

This email is:   [ ] bloggable    [X] ask first   [ ] private

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to