GuzzleHttp\Client
melusinenesmlp opened this issue · 5 comments
melusinenesmlp commented
Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in C:\xampp\htdocs\SMS\neolikotsi\smsportal\src\RestClient.php:31 Stack trace: #0 C:\xampp\htdocs\SMS\Index.php(13): NeoLikotsi\SMSPortal\RestClient->__construct('....', '...', 'https://rest.sm...') #1 {main} thrown in C:\xampp\htdocs\SMS\neolikotsi\smsportal\src\RestClient.php on line 31
neolikotsi commented
Hi @melusinenesmlp update to release 1.0.10
melusinenesmlp commented
Thanks Neo,
I had already resolved this, Now I want to Ask:
$responseArray1 = $client->message()->send([
'messages' => [
[
'destination' => '+26878110252',
'content' => $message->getContent(),
]
]
]);
To add multiple recipients of the same message how do I do that?
From: Neo Likotsi <notifications@github.com>
Sent: Thursday, 18 June 2020 15:58
To: neolikotsi/php-smsportal <php-smsportal@noreply.github.com>
Cc: Melusi Nene <melusin@eswade.co.sz>; Mention <mention@noreply.github.com>
Subject: Re: [neolikotsi/php-smsportal] GuzzleHttp\Client (#2)
Hi @melusinenesmlp<https://github.com/melusinenesmlp> update to release 1.0.10
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP7UVDZCHIPCJYTWPFQBNB3RXIMOPANCNFSM4OAVVPXQ>.
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
neolikotsi commented
you can append 'messages' array to send more messages in the same request. Remember to keep to the bulk size that the docs specify as the limit for 1 request.
$content = $message->getContent();
...
'messages' => [
[
'destination' => '1234567890',
'content' => $content,
],
[
'destination' => '0123456789',
'content' => $content,
],
]
melusinenesmlp commented
Thanks
From: Neo Likotsi <notifications@github.com>
Sent: Monday, 22 June 2020 15:20
To: neolikotsi/php-smsportal <php-smsportal@noreply.github.com>
Cc: Melusi Nene <melusin@eswade.co.sz>; Mention <mention@noreply.github.com>
Subject: Re: [neolikotsi/php-smsportal] GuzzleHttp\Client (#2)
you can append 'messages' array to send more messages in the same request. Remember to keep to the bulk size that the docs specify as the limit for 1 request.
$content = $message->getContent();
...
'messages' => [
[
'destination' => '1234567890',
'content' => $content,
],
[
'destination' => '0123456789',
'content' => $content,
],
]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP7UVDYGFZTSNKZWTM3ZHY3RX5K7DANCNFSM4OAVVPXQ>.
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
melusinenesmlp commented
Hi Neo,
Please assist, I want to push SMS replies from smsportal.com into mysql database.
From: Neo Likotsi <notifications@github.com>
Sent: Monday, 22 June 2020 15:20
To: neolikotsi/php-smsportal <php-smsportal@noreply.github.com>
Cc: Melusi Nene <melusin@eswade.co.sz>; Mention <mention@noreply.github.com>
Subject: Re: [neolikotsi/php-smsportal] GuzzleHttp\Client (#2)
you can append 'messages' array to send more messages in the same request. Remember to keep to the bulk size that the docs specify as the limit for 1 request.
$content = $message->getContent();
...
'messages' => [
[
'destination' => '1234567890',
'content' => $content,
],
[
'destination' => '0123456789',
'content' => $content,
],
]
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP7UVDYGFZTSNKZWTM3ZHY3RX5K7DANCNFSM4OAVVPXQ>.
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus