Skip to content

Instantly share code, notes, and snippets.

@Shebella
Created August 26, 2014 00:56
Show Gist options
  • Save Shebella/6970a60a1a240810b57b to your computer and use it in GitHub Desktop.
Save Shebella/6970a60a1a240810b57b to your computer and use it in GitHub Desktop.
// The factory instance is re-useable and thread safe.
Twitter twitter = TwitterFactory.getSingleton();
Status status = twitter.updateStatus(latestStatus);
System.out.println("Successfully updated the status to [" + status.getText() + "].");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment