confused with OAuth

36 views
Skip to first unread message

Vertex Conde

unread,
Nov 13, 2013, 3:51:57 PM11/13/13
to jt...@googlegroups.com
Hey! Im new developing with Jtweet, found this more easy to use than other libraries... The problem is than im so confused since i couldnt make the example work and other OAuth stuff,

i was trying using this ones OAuthConsumer consumer = new DefaultOAuthConsumer("jINvpfu86PomTJeKkFKDbA" , "Mlvf0olmgzQWGV0zHEkqaE1gShwDizHLRyqYUP7eyfA");
        
        OAuthProvider provider = new DefaultOAuthProvider("https://api.twitter.com/oauth/request_token" ,
                                                           "https://api.twitter.com/oauth/authorize" ,
                                                           "https://api.twitter.com/oauth/access_token");
        
        System.out.println("fetching request code from twitter...");
        
but i get errors in netbeans saying bad autenticacion data... what else do i need to update my status?
Im trying to do a simple tweeter aplication where you can update status, see TL, and the usual stuff

Dobes Vandermeer

unread,
Nov 13, 2013, 5:06:57 PM11/13/13
to jt...@googlegroups.com
I have an example app over here: https://github.com/dobesv/retweetster

It's quite old but maybe it will help you in some way.

I can't tell based on the information you gave what the problem would
be, but I'd double-check your "authentication data" and see if it
works right.

I think there are some nice tools out there to just mess with the
twitter API directly without coding, like
https://apigee.com/console/twitter where you could try putting the
same keys and see if they work.
> --
> You received this message because you are subscribed to the Google Groups
> "JTwitter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jtwit+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Vertex Conde

unread,
Nov 13, 2013, 5:13:59 PM11/13/13
to jt...@googlegroups.com
Oh thank you! Ill check both and maybe make something to my aplication. Im trying to develop a desktop client. Im new into java and the libraries and stuff, its a school proyect i have the basics but im messing around with the tools just for the lulz and learn. 

I was thinking i was missing my own secret token stuff... Cause i entered my user and pasword. But twitter oath stuff its a bit confusing for me for now. 

Ill try and let you know ehat happened :) 

Have a nice day bro! 
You received this message because you are subscribed to a topic in the Google Groups "JTwitter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jtwit/tLtGrT9_oRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jtwit+un...@googlegroups.com.

Vertex Conde

unread,
Nov 14, 2013, 1:48:54 PM11/14/13
to jt...@googlegroups.com
well as i see in your code, the authentification is quite a deal... I was trying to just make something simple, but i see i need quite a lot and maybe the stuff i found in your code might help me. And ill try to mess less with the OAuth library and just work with the jtwitter stuff... 
Ill start to code that autentification method D: its a big deal, and as far as i see theres isnt a simpler method just to test the API 

Dobes Vandermeer

unread,
Nov 14, 2013, 4:14:57 PM11/14/13
to jt...@googlegroups.com
Hi Vertex,

Actually for a client-side app where you are not running a site there
is a simpler way.

https://dev.twitter.com/docs/auth/oauth/single-user-with-examples
Reply all
Reply to author
Forward
0 new messages