.

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

Google Ads