public function create($phoneNumber, $smsCapability, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'PhoneNumber' => $phoneNumber,
            'SmsCapability' => Serialize::booleanToString($smsCapability),
            'AccountSid' => $options['accountSid'],
            'FriendlyName' => $options['friendlyName'],
            'UniqueName' => $options['uniqueName'],
            'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
            'SmsUrl' => $options['smsUrl'],
            'SmsMethod' => $options['smsMethod'],
            'SmsFallbackUrl' => $options['smsFallbackUrl'],
            'SmsFallbackMethod' => $options['smsFallbackMethod'],
            'StatusCallbackUrl' => $options['statusCallbackUrl'],
            'StatusCallbackMethod' => $options['statusCallbackMethod'],
            'SmsApplicationSid' => $options['smsApplicationSid'],
            'AddressSid' => $options['addressSid'],
            'Email' => $options['email'],
            'VerificationType' => $options['verificationType'],
            'VerificationDocumentSid' => $options['verificationDocumentSid'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new HostedNumberOrderInstance($this->version, $payload);
    }
public function create($phoneNumber, $smsCapability, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'PhoneNumber' => $phoneNumber,
            'SmsCapability' => Serialize::booleanToString($smsCapability),
            'AccountSid' => $options['accountSid'],
            'FriendlyName' => $options['friendlyName'],
            'UniqueName' => $options['uniqueName'],
            'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }),
            'SmsUrl' => $options['smsUrl'],
            'SmsMethod' => $options['smsMethod'],
            'SmsFallbackUrl' => $options['smsFallbackUrl'],
            'SmsFallbackMethod' => $options['smsFallbackMethod'],
            'StatusCallbackUrl' => $options['statusCallbackUrl'],
            'StatusCallbackMethod' => $options['statusCallbackMethod'],
            'SmsApplicationSid' => $options['smsApplicationSid'],
            'AddressSid' => $options['addressSid'],
            'Email' => $options['email'],
            'VerificationType' => $options['verificationType'],
            'VerificationDocumentSid' => $options['verificationDocumentSid'],
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new HostedNumberOrderInstance($this->version, $payload);
    }
public function create ( $ phoneNumber , $ smsCapability , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'PhoneNumber' => $ phoneNumber , 'SmsCapability' => Serialize :: booleanToString ( $ smsCapability ) , 'AccountSid' => $ options [ 'accountSid' ] , 'FriendlyName' => $ options [ 'friendlyName' ] , 'UniqueName' => $ options [ 'uniqueName' ] , 'CcEmails' => Serialize :: map ( $ options [ 'ccEmails' ] , function ( $ e ) { return $ e ; } ) , 'SmsUrl' => $ options [ 'smsUrl' ] , 'SmsMethod' => $ options [ 'smsMethod' ] , 'SmsFallbackUrl' => $ options [ 'smsFallbackUrl' ] , 'SmsFallbackMethod' => $ options [ 'smsFallbackMethod' ] , 'StatusCallbackUrl' => $ options [ 'statusCallbackUrl' ] , 'StatusCallbackMethod' => $ options [ 'statusCallbackMethod' ] , 'SmsApplicationSid' => $ options [ 'smsApplicationSid' ] , 'AddressSid' => $ options [ 'addressSid' ] , 'Email' => $ options [ 'email' ] , 'VerificationType' => $ options [ 'verificationType' ] , 'VerificationDocumentSid' => $ options [ 'verificationDocumentSid' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new HostedNumberOrderInstance ( $ this -> version , $ payload ) ; }
Create a new HostedNumberOrderInstance

@param string $phoneNumber An E164 formatted phone number.
@param boolean $smsCapability Specify SMS capability to host.
@param array|Options $options Optional Arguments
@return HostedNumberOrderInstance Newly created HostedNumberOrderInstance
@throws TwilioException When an HTTP error occurs.
Create a new HostedNumberOrderInstance