Twitter Watch in JavaFX

A Twitter application implemented in JavaFX.

Twitter Watch screen shot
Twitter Watch screen shot

Features:

The following REST APIs provided by Twitter are implemented:

Status Methods:

  • public_timeline: Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
  • friends_timeline: Returns the 20 most recent statuses posted by the authenticating user and that user’s friends.
  • user_timeline: Returns the 20 most recent statuses posted from the authenticating user.
  • update: Updates the authenticating user’s status.
  • replies: Returns the 20 most recent @replies (status updates prefixed with @username) for the authenticating user.

User Methods:

  • friends: Returns up to 100 of the authenticating user’s friends who have most recently updated, each with current status inline.
  • followers: Returns the authenticating user’s followers, each with current status inline.

Direct Message Methods:

  • direct_messages: Returns a list of the 20 most recent direct messages sent to the authenticating user.
  • sent: Returns a list of the 20 most recent direct messages sent by the authenticating user.
  • new: Sends a new direct message to the specified user from the authenticating user.

Friendships Method:

  • create: Befriends the user specified in the ID parameter as the authenticating user.
  • destroy: Discontinues friendship with the user specified in the ID parameter as the authenticating user.
  • exists: Tests if a friendship exists between two users.

Account Method:

  • verify_credentials: 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.

Future Improvements:

Favorite Methods:

  • favorites: Returns the 20 most recent favorite statuses for the authenticating user.
  • create: Favorites the status specified in the ID parameter as the authenticating user.
  • destroy: Un-favorites the status specified in the ID parameter as the authenticating user.

Notification Methods:

  • follow: Enables notifications for updates from the specified user to the authenticating user.
  • leave: Disables notifications for updates from the specified user to the authenticating user.

Block Methods:

  • create: Blocks the user specified in the ID parameter as the authenticating user.
  • destroy: Un-blocks the user specified in the ID parameter as the authenticating user.

Search:

  • search based on people’s name or text. This API is not currently supported by Twitter.

Download and try it:

  • download the TwitterWatch.jar file from box.net.
  • from the command line, execute
        javafx -cp TwitterWatch.jar twitter.TwitterWatch
Advertisements
Twitter Watch in JavaFX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s