Tweet to myself
I thought up of Self-replying and Self-retweeting. Are there possible?
- Self-replying
- To tweet in reply to my tweet
- Self-retweeting
- To retweet (RT) to my tweet
Twitter API is easy-to-use
Twitter REST API is very, very simple. To tweet, Just only send a HTTP-POST request. If your system has curl:
- To tweet (update your status), type curl -u username:password -d "status=your message" http://api.twitter.com/1/statuses/update.json
- To retweet (RT), type curl -u username:password -X POST http://api.twitter.com/1/statuses/retweet/tweet_id.json
where tweet_id is numerical ID of the tweet you are retweeting.
Do you want wget better than curl? If so:
- To tweet (update your status), type wget --user username --password password --post-data='status=your message' http://api.twitter.com/1/statuses/update.json
- To retweet (RT), type wget --user username --password password --post-data='' http://api.twitter.com/1/statuses/retweet/tweet_id.json
How to tweet in reply to a tweet
If you send tweet with in_reply_to_status_id
parameter set to tweet id, and if the tweet contains @user, then in reply to user is displayed on the Twitter user's profile. Example one-liners are as follows:
- type curl -u username:password -d "status=@username_you_reply_to%20your message&in_reply_to_status_id=tweet_id" http://api.twitter.com/1/statuses/update.json
- or wget --user username --password password --post-data='status=@username_you_reply_to%20your message&in_reply_to_status_id=tweet_id' http://api.twitter.com/1/statuses/update.json
@username_you_reply_to in tweet is important. API reference said as follows:
in_reply_to_status_id. Optional. The ID of an existing status that the update is in reply to.
- Note: This parameter will be ignored unless the author of the tweet this parameter references is mentioned within the status text. Therefore, you must include @username, where username is the author of the referenced tweet, within the update.
How to tweet in reply to my tweet
Self-replying is also easy. Self-replying is disabled on the Twitter web page, but you can self-tweet with Twitter API! The way is same as tweet:
- type curl -u username:password -d "status=@username%20your message&in_reply_to_status_id=tweet_id" http://api.twitter.com/1/statuses/update.json
- or wget --user username --password password --post-data='status=@username%20your message&in_reply_to_status_id=tweet_id' http://api.twitter.com/1/statuses/update.json
Needless to say, tweet_id must be numerical ID of my tweet you reply to.
I wanna retweet (RT) my tweet
Unfortunately, I couldn't do 'self-retweet.' I typed curl -u cat_in_136:password -X POST http://api.twitter.com/1/statuses/retweet/10864684596.json (where 10864684596 is my tweet), but following validation error was occurred:
% curl -u cat_in_136:password -X POST http://api.twitter.com/1/statuses/retweet/10864684596.json
{"errors":"Share sharing is not permissable for this status (Share validations failed)"}
Self-retweeting doesn't seem to be permissable.
Conclusion
Self-replying is possible, but Self-retweeting is not possible.
Type of tweeting | Possibility |
---|---|
Self-replying | O (Sample is here) |
Self-retweeting | X (Error was occurred) |