- How do I get “from Twitter4J” appended to updates sent from my application?
- Twitter API Wiki - FAQ - How do I get “from [MyApp]” appended to updates sent from my API application?
- Is Twitter4J tread-safe? Yes. Twitter4J is thread-safe and you can make method calls concurrently.
- Where to report bugs?
- How do I configure proxy server for Twitter4J? You can either to use system properties(-Dtwitter4j.http.proxyHost, -Dtwitter4j.http.proxyPort) or setHttpProxy(proxyHost,proxyPort).
- How do I debug my application? You can set the system property twitter4j.debug to true to dump the stream between your client and the twitter API.
- The code examples don't compile on my environment(Java1.4 or Processing). Example codes for methods return a list of object such as getTimeline(), getUserTimeline(), and getFriendsTimeline() use Java Generics grammar which is applicable Java 5.0 or later. Projects using JDK1.4(includeing Processing platform) or earlier need to cast explicitly to get elements inside the list as follows:
In order to get your app name seen on twitter.com, you need to register your application at twitter.com in advance, and use OAuth scheme.
See also:Please feel free to post any reports to the Twitter4J list. If you are sure that the issue is from the Twitter API, you may want to report to the Twitter Deveopment Talk.
See also:
Twitter twitter = new Twitter(twitterID,twitterPassword);
List statuses = twitter.getFriendsTimeline();
System.out.println("Showing friends timeline.");
for(int i=0; i < statuses.size() ; i++) {
Status status = (Status)statuses.get(i);
System.out.println(status.getUser().getName() + ":" +
status.getText());
}
See also: