RequestToken requestToken = (RequestToken) session.getAttribute("request-token") / Call back action: Where the twitter will redirect after successfull authentication. tAttribute("request-token", requestToken) String authUrl = requestToken.getAuthorizationURL() RequestToken requestToken = twitter.getOAuthRequestToken('callbackurl') tOAuthConsumer(ConsumerKey,ConsumerSecret) With Twitter4J, you can easily integrate your Java application with the Twitter.Ģ) Twitter will return Consumer Key and Consumer Secret for your application.ģ) Download the twitter4j jar and place that jar file in the classpath. Twitter4J is a Java library for the Twitter API. These are few basic steps which will help you to integrate your java application with twitter using twitter4j.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |