Skip to content

Commit

Permalink
Minor adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Nicholson committed Feb 18, 2021
1 parent 4fafbad commit 7974a8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ClickatellClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ public function __construct(Client $client, $apiKey)
*/
public function send(array $to, $message)
{
$to = collect($to)->toArray();

$response = $this->client->request('GET', 'https://platform.clickatell.com/messages/http/send', [
'query' => [
'apiKey' => $this->apiKey,
'to' => $to,
'content' => $message,
],
])->getBody();
])->getBody()->getContents;

$response = json_decode($response, true);

$this->handleProviderResponses($response);
return $this->handleProviderResponses($response);
}

/**
Expand Down

0 comments on commit 7974a8f

Please sign in to comment.