From 0cdadc47bf38e781b74a01c7f9c15b89800f063c Mon Sep 17 00:00:00 2001 From: Alexandre ZANELLI Date: Tue, 7 Jul 2020 12:37:33 +0200 Subject: [PATCH] Adding reference to documentation --- src/psm/Txtmsg/OVHsms.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/psm/Txtmsg/OVHsms.php b/src/psm/Txtmsg/OVHsms.php index 97abdb22..8d0af2d5 100644 --- a/src/psm/Txtmsg/OVHsms.php +++ b/src/psm/Txtmsg/OVHsms.php @@ -34,8 +34,10 @@ namespace psm\Txtmsg; class OVHsms extends Core { /** - * Send sms using the OVH API + * Send sms using the OVH http2sms gateway + * Online documentation :https://docs.ovh.com/fr/sms/envoyer_des_sms_depuis_une_url_-_http2sms/ * Ovh need Account and Login, then use format login@account in username field. + * * @var string $message * @var string $this->username * @var string $this->password @@ -85,7 +87,6 @@ class OVHsms extends Core { $xmlResults = simplexml_load_string($result); $err = curl_errno($curl); - if ($err != 0 || $httpcode != 200 || $xmlResults === false ||($xmlResults->status != '100' && $xmlResults->status != '101')) { $success = 0; $error = "HTTP_code: ".$httpcode.".\ncURL error (".$err."): ".curl_strerror($err).". \nResult: ".$xmlResults->status." \n".$xmlResults->Message;