src/Ovh/Sms/SmsClient.php
public function getSeeOffers($domain, $countryDestination, $countryCurrencyPrice, $quantity)
    {
        $countriesDestination = array('all', 'ai', 'an', 'ar', 'at', 'au', 'aw', 'ba', 'bb', 'be', 'bg', 'bh', 'bm', 'bo', 'br', 'bz', 'ch', 'cl', 'cn', 'co', 'cr', 'cu', 'cy', 'cz', 'de', 'dk', 'dm', 'dz', 'ec', 'ee', 'eg', 'es', 'fi', 'fr', 'gb', 'gd', 'gp', 'gr', 'gy', 'hk', 'hn', 'hr', 'ht', 'hu', 'id', 'ie', 'il', 'in', 'is', 'it', 'jm', 'jo', 'jp', 'kr', 'kw', 'ky', 'lb', 'lc', 'lt', 'lu', 'lv', 'ma', 'me', 'mq', 'ms', 'mt', 'my', 'nc', 'ng', 'nl', 'no', 'nz', 'pa', 'pe', 'pf', 'ph', 'pk', 'pl', 'pt', 'py', 're', 'ro', 'rs', 'ru', 'sa', 'se', 'sg', 'si', 'sk', 'sr', 'tc', 'th', 'tn', 'tr', 'tt', 'tw', 'ua', 'uy', 'vc', 've', 'vg', 'vn', 'za');
        $countryDestination = strtolower($countryDestination);

        $countriesCurrencyPrice = array('all', 'ca', 'cz', 'de', 'en', 'es', 'fi', 'fr', 'gb', 'ie', 'it', 'lt', 'ma', 'nl', 'pl', 'pp', 'pt', 'qc', 'ru', 'sk', 'sn', 'tn', 'we');
        $countryCurrencyPrice = strtolower($countryCurrencyPrice);

        $quantities = array(100, 1000, 10000, 100000, 1000000, 200, 250, 2500, 25000, 500, 5000, 50000);
        $quantity = intval($quantity);

        if (!$domain)
            throw new BadMethodCallException('Parameter $domain is missing.');

        if (!in_array($countryDestination, $countriesDestination)) {
            throw new BadMethodCallException('Parameter $countryDestination must be in array (' . implode(', ', $countriesDestination) . '), "' . $countryDestination . '" given.');
        }
        if (!in_array($countryCurrencyPrice, $countriesCurrencyPrice)) {
            throw new BadMethodCallException('Parameter $countryCurrencyPrice must be in array (' . implode(', ', $countriesCurrencyPrice) . '), "' . $countryCurrencyPrice . '" given.');
        }
        if (!in_array($quantity, $quantities)) {
            throw new BadMethodCallException('Parameter $quantity must be in array (' . implode(', ', $quantities) . '), "' . $quantity . '" given.');
        }

        try {

            $r = $this->get('sms/' . $domain . '/seeOffers?countryDestination=' . $countryDestination . '&countryCurrencyPrice=' . $countryCurrencyPrice . '&quantity=' . $quantity)->send();
        } catch (\Exception $e) {
            throw new SmsException($e->getMessage(), $e->getCode(), $e);
        }

        return $r->getBody(true);
    }
public function getSeeOffers($domain, $countryDestination, $countryCurrencyPrice, $quantity)
    {
        $countriesDestination = array('all', 'ai', 'an', 'ar', 'at', 'au', 'aw', 'ba', 'bb', 'be', 'bg', 'bh', 'bm', 'bo', 'br', 'bz', 'ch', 'cl', 'cn', 'co', 'cr', 'cu', 'cy', 'cz', 'de', 'dk', 'dm', 'dz', 'ec', 'ee', 'eg', 'es', 'fi', 'fr', 'gb', 'gd', 'gp', 'gr', 'gy', 'hk', 'hn', 'hr', 'ht', 'hu', 'id', 'ie', 'il', 'in', 'is', 'it', 'jm', 'jo', 'jp', 'kr', 'kw', 'ky', 'lb', 'lc', 'lt', 'lu', 'lv', 'ma', 'me', 'mq', 'ms', 'mt', 'my', 'nc', 'ng', 'nl', 'no', 'nz', 'pa', 'pe', 'pf', 'ph', 'pk', 'pl', 'pt', 'py', 're', 'ro', 'rs', 'ru', 'sa', 'se', 'sg', 'si', 'sk', 'sr', 'tc', 'th', 'tn', 'tr', 'tt', 'tw', 'ua', 'uy', 'vc', 've', 'vg', 'vn', 'za');
        $countryDestination = strtolower($countryDestination);

        $countriesCurrencyPrice = array('all', 'ca', 'cz', 'de', 'en', 'es', 'fi', 'fr', 'gb', 'ie', 'it', 'lt', 'ma', 'nl', 'pl', 'pp', 'pt', 'qc', 'ru', 'sk', 'sn', 'tn', 'we');
        $countryCurrencyPrice = strtolower($countryCurrencyPrice);

        $quantities = array(100, 1000, 10000, 100000, 1000000, 200, 250, 2500, 25000, 500, 5000, 50000);
        $quantity = intval($quantity);

        if (!$domain)
            throw new BadMethodCallException('Parameter $domain is missing.');

        if (!in_array($countryDestination, $countriesDestination)) {
            throw new BadMethodCallException('Parameter $countryDestination must be in array (' . implode(', ', $countriesDestination) . '), "' . $countryDestination . '" given.');
        }
        if (!in_array($countryCurrencyPrice, $countriesCurrencyPrice)) {
            throw new BadMethodCallException('Parameter $countryCurrencyPrice must be in array (' . implode(', ', $countriesCurrencyPrice) . '), "' . $countryCurrencyPrice . '" given.');
        }
        if (!in_array($quantity, $quantities)) {
            throw new BadMethodCallException('Parameter $quantity must be in array (' . implode(', ', $quantities) . '), "' . $quantity . '" given.');
        }

        try {

            $r = $this->get('sms/' . $domain . '/seeOffers?countryDestination=' . $countryDestination . '&countryCurrencyPrice=' . $countryCurrencyPrice . '&quantity=' . $quantity)->send();
        } catch (\Exception $e) {
            throw new SmsException($e->getMessage(), $e->getCode(), $e);
        }

        return $r->getBody(true);
    }
Describe SMS offers available.

@param string $countryDestination country code ISO 3166-2
@param string $countryCurrencyPrice country code ISO 3166-2
@param integer $quantity
@param string $domain
@return string Json
@throws BadMethodCallException
@throws Exception\SmsException