How do write at "What's happening" twitter through twitter4j?
in
Contributed Library Questions
•
2 years ago
Hi all! I do manage to search for twitter with:
myTwitter = new Twitter("tw_user", "tw_password");
try {
Query query = new Query("whatever");
query.setRpp(100);
QueryResult result = myTwitter.search(query);
ArrayList tweets = (ArrayList) result.getTweets();
for (int i = 0; i < tweets.size(); i++) {
Tweet t = (Tweet) tweets.get(i);
String user = t.getFromUser();
String msg = t.getText();
Date d = t.getCreatedAt();
println("Tweet by " + user + " at " + d + ": " + msg);
};
}
catch (TwitterException te) {
println("Couldn't connect: " + te);
};
But I don't know the function to POST a new message in may user from Processing.
THANKS FOR YOUR HELP and EXCUSE MY ENGLISH
1