We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e78cb commit a9490faCopy full SHA for a9490fa
src/TwitterChannel.php
@@ -32,12 +32,14 @@ public function send($notifiable, Notification $notification)
32
$twitterMessage = $notification->toTwitter($notifiable);
33
$twitterMessage = $this->addImagesIfGiven($twitterMessage);
34
35
- $this->twitter->post($twitterMessage->getApiEndpoint(), $twitterMessage->getRequestBody($this->twitter),
+ $twitterApiResponse = $this->twitter->post($twitterMessage->getApiEndpoint(), $twitterMessage->getRequestBody($this->twitter),
36
$twitterMessage->isJsonRequest);
37
38
if ($this->twitter->getLastHttpCode() !== 200) {
39
throw CouldNotSendNotification::serviceRespondsNotSuccessful($this->twitter->getLastBody());
40
}
41
+
42
+ return $twitterApiResponse;
43
44
45
/**
0 commit comments