Twitter4j
Getting hit by the
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
Twitter4j
and follow me on Twitter : Ajay George on Twitter











.jpg)




hi,
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??
thanks,
Avijit
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
Thanks, man. yes it has started working.
Think it will be a good experience.
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/5.0.2.2635 Server at twitter.com Port 80
can u explain what’s the reason