Adding reference to documentation

This commit is contained in:
Alexandre ZANELLI 2020-07-07 12:37:33 +02:00
parent 3a947358ae
commit 0cdadc47bf
No known key found for this signature in database
GPG Key ID: 982B44D40F491AD2
1 changed files with 3 additions and 2 deletions

View File

@ -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;