Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
juanmagil
juanmagil's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
How do write at "What's happening" twitter through twitter4j?
[0 Replies]
19-Nov-2010 04:37 PM
Forum:
Contributed Library Questions
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
«Prev
Next »
Moderate user : juanmagil
Forum