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

        $data = Values::of(array(
            'PhoneNumber' => $phoneNumber,
            'FriendlyName' => $options['friendlyName'],
            'CallDelay' => $options['callDelay'],
            'Extension' => $options['extension'],
            'StatusCallback' => $options['statusCallback'],
            'StatusCallbackMethod' => $options['statusCallbackMethod'],
        ));

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

        return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']);
    }
public function create($phoneNumber, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'PhoneNumber' => $phoneNumber,
            'FriendlyName' => $options['friendlyName'],
            'CallDelay' => $options['callDelay'],
            'Extension' => $options['extension'],
            'StatusCallback' => $options['statusCallback'],
            'StatusCallbackMethod' => $options['statusCallbackMethod'],
        ));

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

        return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']);
    }
public function create ( $ phoneNumber , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'PhoneNumber' => $ phoneNumber , 'FriendlyName' => $ options [ 'friendlyName' ] , 'CallDelay' => $ options [ 'callDelay' ] , 'Extension' => $ options [ 'extension' ] , 'StatusCallback' => $ options [ 'statusCallback' ] , 'StatusCallbackMethod' => $ options [ 'statusCallbackMethod' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new ValidationRequestInstance ( $ this -> version , $ payload , $ this -> solution [ 'accountSid' ] ) ; }
Create a new ValidationRequestInstance

@param string $phoneNumber The phone number to verify in E.164 format
@param array|Options $options Optional Arguments
@return ValidationRequestInstance Newly created ValidationRequestInstance
@throws TwilioException When an HTTP error occurs.
Create a new ValidationRequestInstance