The Cult AGP


Getting hit by the Twitter bug, decided to play around with the APIs.
The Java API called Twitter4j , which is a wrapper around the Twitter API is pretty good. Its as simple as calling an update method for updating your twitter status..

Check out
and follow me on Twitter : Ajay George on Twitter

Comments on: "Twitter4j" (4)

  1. Avijit Sadhu said:

    i started off with twitter4j yesterday but having trouble to start going with a Hello World program. I am not a pro at Java, maybe tats a reason. Can u please help??


    • Try this out :

      String twitterID = "xxxx"; //UserName
      String twitterPassword = "xxxx"; //Password
      Twitter twitter = new Twitter(twitterID,twitterPassword);
      String latestStatus = "Checking"; //Status Message
      Status status = twitter.update(latestStatus); //Update

  2. hi,

    i am using twitter4j to post status.It’s working fine in my system.when the same code is used on other system it’s throwing the following error.

    twitter4j.TwitterException: 404:The URI requested is invalid or the resource requested, such as a user, does not exists.

    404 Not Found

    Not Found
    The requested URL /statuses/update.xml was not found on this server.
    Additionally, a 500 Internal Server Error
    error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/ Server at Port 80

    can u explain what’s the reason

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: