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

        $data = Values::of(array(
            'FriendlyName' => $friendlyName,
            'IpAddress' => $ipAddress,
            'CidrPrefixLength' => $options['cidrPrefixLength'],
        ));

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

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

        $data = Values::of(array(
            'FriendlyName' => $friendlyName,
            'IpAddress' => $ipAddress,
            'CidrPrefixLength' => $options['cidrPrefixLength'],
        ));

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

        return new IpAddressInstance(
            $this->version,
            $payload,
            $this->solution['accountSid'],
            $this->solution['ipAccessControlListSid']
        );
    }
public function create ( $ friendlyName , $ ipAddress , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'FriendlyName' => $ friendlyName , 'IpAddress' => $ ipAddress , 'CidrPrefixLength' => $ options [ 'cidrPrefixLength' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new IpAddressInstance ( $ this -> version , $ payload , $ this -> solution [ 'accountSid' ] , $ this -> solution [ 'ipAccessControlListSid' ] ) ; }
Create a new IpAddressInstance

@param string $friendlyName A human readable descriptive text for this
resource, up to 64 characters long.
@param string $ipAddress An IP address in dotted decimal notation from which
you want to accept traffic. Any SIP requests from
this IP address will be allowed by Twilio. IPv4
only supported today.
@param array|Options $options Optional Arguments
@return IpAddressInstance Newly created IpAddressInstance
@throws TwilioException When an HTTP error occurs.
Create a new IpAddressInstance