Add method for retweeting
This commit is contained in:
parent
802a9b0ba2
commit
e8ad0b9b91
2 changed files with 8 additions and 1 deletions
|
|
@ -25,4 +25,11 @@ class Retweeter
|
|||
|
||||
$this->codebird = $codebird;
|
||||
}
|
||||
|
||||
public function retweet(array $tweet): void
|
||||
{
|
||||
$this->codebird->statuses_retweet_ID([
|
||||
'id' => $tweet['id'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue