FeedMonitor is a simple feed monitoring application.
FeedMonitor monitors specified feeds and reports newly posted entries to the specified Twitter account every 10 minutes.
It is possible to specify multiple configuration files.
Numeric parameter will be recognized as monitoring interverval in minutes.
Usage: java twitter4j.examples.FeedMonitor [config_file_path ..] [interval(min)]
If no configuration file path is specified, FeedMonitor will look for default configuration file name - "feedmonitor.properties".
The configuration file format is Java standard properties file format with following properties:
feedurl : the feed URL you want to monitor
id : Twitter id
password : Twitter password
Returns an array of numeric IDs for every user the specified user is following.
all IDs are attempted to be returned, but large sets of IDs will likely fail with timeout errors.
This method calls http://twitter.com/statuses/public_timeline
Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
Main entry point for this application.
If config_file_path is not specified, feedmonitor.properties will be used.
Usage: java twitter4j.examples.FeedMonitor [config_file_path ..] [interval(min)]
Example application that uses OAuth method to acquire access to your account.
This application illustrates how to use OAuth method with Twitter4J.
Usage: java -Dtwitter4j.oauth.consumerKey=[consumer key] -Dtwitter4j.oauth.consumerSecret=[consumer secret] twitter4j.examples.OAuthUpdate [message]
Example application that sends a message to specified Twitter-er from specified account.
Usage: java twitter4j.examples.DirectMessage senderID senderPassword message recipientId
An exception class that will be thrown when TwitterAPI calls are failed.
In case the Twitter server returned HTTP error code, you can get the HTTP status code using getStatusCode() method.
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.