diff options
author | Evan Prodromou <evan@status.net> | 2010-09-03 17:34:10 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-07 04:00:57 -0400 |
commit | d6719760d61b204ab7cf5ce013f2933ef4024f1a (patch) | |
tree | fa5aea00a7b3d287586487395602454c606e6d47 /plugins/TwitterBridge/twitteroauthclient.php | |
parent | 2b56d3b534389cba1d44c6f5ef4d1a8a514acda6 (diff) |
do a real retweet for a local repeat
Diffstat (limited to 'plugins/TwitterBridge/twitteroauthclient.php')
-rw-r--r-- | plugins/TwitterBridge/twitteroauthclient.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twitteroauthclient.php b/plugins/TwitterBridge/twitteroauthclient.php index d895d8c73..5e5761360 100644 --- a/plugins/TwitterBridge/twitteroauthclient.php +++ b/plugins/TwitterBridge/twitteroauthclient.php @@ -277,4 +277,19 @@ class TwitterOAuthClient extends OAuthClient return $ids; } + /** + * Calls Twitter's /statuses/retweet/id.json API method + * + * @param int $id id of the notice to retweet + * + * @return retweeted status + */ + + function statusesRetweet($id) + { + $url = "http://api.twitter.com/1/statuses/retweet/$id.json"; + $response = $this->oAuthPost($url); + $status = json_decode($response); + return $status; + } } |