Skip to content

Commit

Permalink
make GmailSource::send compatible with OutgoingAPIDataSource::send
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisdom Ebong authored and Wisdom Ebong committed Apr 25, 2021
1 parent 48cc37b commit 015bcca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"require": {
"ext-json": "*",
"google/apiclient": "^2.0",
"illuminate/mail": "^5.5 || ^6.0 || ^7.0",
"illuminate/support": "^5.5 || ^6.0 || ^7.0",
"illuminate/mail": "^5.5 || ^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0",
"league/html-to-markdown": "^4.10",
"nesbot/carbon": "^1.3 || ^2.3",
"zbateson/mail-mime-parser": "^1.2"
Expand Down
5 changes: 4 additions & 1 deletion src/GmailSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ public function fetch($limit = false)
* @param string to Phone number to receive the message
* @param string message Message to be sent
* @param string title Message title
* @param string contact_type type of the contact to reach out to
* (for multi-channel datasources)
*
* @return array Array of message status, and tracking ID.
*/
public function send($to, $message, $title = '')
public function send($to, $message, $title = '', $contact_type = null)
{
$gmail = $this->connect();

Expand Down

0 comments on commit 015bcca

Please sign in to comment.