Adding reference to documentation
This commit is contained in:
parent
3a947358ae
commit
0cdadc47bf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue