ovh / php-ovh-sms

PHP for ovh sms API
Other
48 stars 49 forks source link

$receiver parameter is never used in getOutgoingMessages() #28

Open ghost opened 5 years ago

ghost commented 5 years ago

The parameter and filter $receiver for the method getOutgoingMessages() in the class SmsApi is never used. We can't filter by receiver and we will always get every SMS.

Works fine if we add the following code before sending the request :

if (!is_null($receiver)) {
    $parameters['receiver'] = $receiver;
}

More information on /sms/{serviceName}/outgoing request parameters here : https://api.ovh.com/console/#/sms/%7BserviceName%7D/outgoing#GET