Research Log of Web Science Students

Computer Science is not simply programming

Stalling with tweeting from Hardwire

leave a comment »

I can’t believe I am back to bloggin about Twitter4J. This time I am trying to tweet from Twitter4J. Before I only needed to get the Twitter profile.

This code doesn’t seem to work:

twitter.setOAuthConsumer(consumerKey,consumerSecret);
twitter.setOAuthAccessToken(new AccessToken(token,tokenSecret));
try {
	twitter.updateStatus(tweet);
} catch (TwitterException e) {
	throw new OAuthClientException(e.getMessage());
      }

The error I get is

/statuses/update.xml
Read-only application cannot POST

UPDATE: But I already did this before. Maybe I have to get a new user again.

Advertisements

Written by Jose Asuncion

October 9, 2009 at 8:48 pm

Posted in Hardwire

Tagged with ,

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

%d bloggers like this: