function twitter_set_status in Twitter 7.4
Same name and namespace in other branches
- 6.5 twitter.inc \twitter_set_status()
- 6.2 twitter.inc \twitter_set_status()
- 6.3 twitter.inc \twitter_set_status()
- 6.4 twitter.inc \twitter_set_status()
- 7.6 twitter.inc \twitter_set_status()
- 7.3 twitter.inc \twitter_set_status()
- 7.5 twitter.inc \twitter_set_status()
Post a message to twitter
Parameters
$twitter_account: object with a Twitter account.
$status: string message to publish.
Return value
array response from Twitter API.
3 calls to twitter_set_status()
- twitter_actions_set_status in twitter_actions/
twitter_actions.rules.inc - Fetches Twitter account info and submits with the message to the Twitter API
- twitter_actions_set_status_action in twitter_actions/
twitter_actions.module - Implementation of a configurable Twitter action. @todo Implementation for language negotiation for the body and sumary. Also need implementation for bodies with multiple values. Right now it is hard coded and it will only get body and summary for…
- twitter_post_node_insert in twitter_post/
twitter_post.module - Implementation of hook_node_insert().
File
- ./
twitter.inc, line 123
Code
function twitter_set_status($twitter_account, $status) {
$twitter = twitter_connect($twitter_account);
return $twitter
->statuses_update($status);
}