.

Wednesday, January 30, 2013

twitter integration sample code in java miniproject

String user=null;
        String text=null;
        Twitter twitter = new Twitter("username", "password");//replace your username and password
        Status status = twitter.updateStatus("just finds good new friends and chat with them ");
        List statuses = twitter.getFriendsTimeline();
        PrintWriter outputToBrowser = new PrintWriter(response.getOutputStream());
        response.setContentType("text/html");
       
        for(int i=0; i < statuses.size() ; i++) {
            Status status1 = (Status)statuses.get(i);
            user = status1.getUser().getName();
            text = status1.getText();

NEXT ==>> SOURCE CODE DOWNLOAD

twitter application in java sample project

Hi friends sample project to integrate twitter in jsp

This sample project helps you to update your twitter account status online using java and jsp.

sample twitter project integrates twitter api and checks the authentication and if it authenticate with twitter api then the content will update in your real account application.

This is a sample application which is developed in java and twitter api.This sample twitter java application can be used as academic project in your final semester or miniproject in your btech/bsc/msc/bca/ mca programmes.

This twitter mini java project contains mainly two jar files.

sample twitter project using java lib folder
1)twitter4j-2.0.9.jar
2)twitter4j-2.0.9-javadoc.jar
3)twitter4j-2.0.9-sources.jar

the TweetTry  project folder structure is given below.



index.jsp is the main file,where you have to provide your username /password together with your twitter status message.

WEB-INF folder contains classes,liband web.xml








NEXT ==>> SOURCE CODE

Google Ads