Provider/SmsEnvoiProvider.php
public function getResponse($recipient, $message)
    {
        $data = array(
            'email' => $this->email,
            'apikey' => $this->apiKey
        );

        foreach ($this->messageOptions as $name => $value) {
            $data[sprintf('message[%s]', $name)] = $value;
        }

        $data['message[recipients]'] = $recipient;
        $data['message[content]'] = $message;

        $data = http_build_query($data);

        $response = $this->httpClient->post('http://www.smsenvoi.com/httpapi/sendsms/', array(
            'headers' => array(
                'Content-Type' => 'application/x-www-form-urlencoded',
                'Content-Length' => strlen($data)
            ),
            'body' => $data
        ));

        return $response->json();
    }
public function getResponse($recipient, $message)
    {
        $data = array(
            'email' => $this->email,
            'apikey' => $this->apiKey
        );

        foreach ($this->messageOptions as $name => $value) {
            $data[sprintf('message[%s]', $name)] = $value;
        }

        $data['message[recipients]'] = $recipient;
        $data['message[content]'] = $message;

        $data = http_build_query($data);

        $response = $this->httpClient->post('http://www.smsenvoi.com/httpapi/sendsms/', array(
            'headers' => array(
                'Content-Type' => 'application/x-www-form-urlencoded',
                'Content-Length' => strlen($data)
            ),
            'body' => $data
        ));

        return $response->json();
    }
{@inheritdoc}