I got this code on the internet for processing
/*
Sketch to fast and easy get processing Twittering. Both sending and recieving
Created by David Sjunnesson 1scale1.com
3 September 2009
more info: http://code.google.com/p/sjunnesson/
*/
import java.util.List ;
java.util.List statuses =null;
Twitter twitter;
TwitterResponse twitterRes;
String username = "vishalapr"; // add your own here
String password = "batchu12345"; // add your own here
void setup(){
twitter = new Twitter(username,password);
twitterRes=new TwitterResponse();
}
void draw(){
//getAllUpdates();
//updateStatus("Hello Twitter, processing here!");
//getlatestUpdate();
//getFriendsID();
//getFriendsStatus(0);
//updates the Twitter account with the input String
}
void updateStatus(String statusString){
println("Testing arduino-twitter: "+statusString);
try{
Status status1 = twitter.updateStatus(statusString);
}
catch( TwitterException e) {
println(e.getStatusCode());
}
}
and when I click run it opens a small window but does not post my twitter update...Please tell me how to solve this problem.
And the arduino thing forget about it right now as I first want to send tweets to twitter with processing first then I will add the arduino in...
Thanks