public function send($message, array $options = [])
    {
        $sms = new Message($options);
        $this->request('sms', $sms->getParams());
        $response = $this->getResponse();

        if ($response['error_code'] !== '000') {
            $this->errors[] = $response['error_code'];
            return false;
        }

        return true;
    }
public function send($message, array $options = [])
    {
        $sms = new Message($options);
        $this->request('sms', $sms->getParams());
        $response = $this->getResponse();

        if ($response['error_code'] !== '000') {
            $this->errors[] = $response['error_code'];
            return false;
        }

        return true;
    }
public function send ( $ message , array $ options = [ ] ) { $ sms = new Message ( $ options ) ; $ this -> request ( 'sms' , $ sms -> getParams ( ) ) ; $ response = $ this -> getResponse ( ) ; if ( $ response [ 'error_code' ] !== '000' ) { $ this -> errors [ ] = $ response [ 'error_code' ] ; return false ; } return true ; }
Send a sms message

@param  string $message The string message
@param  array  $options The array options
@return bool   true if message is send otherwise false
Send a sms message