public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'CustomerName' => $customerName,
            'Street' => $street,
            'City' => $city,
            'Region' => $region,
            'PostalCode' => $postalCode,
            'IsoCountry' => $isoCountry,
            'FriendlyName' => $options['friendlyName'],
            'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']),
            'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']),
        ));

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

        return new AddressInstance($this->version, $payload, $this->solution['accountSid']);
    }
public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'CustomerName' => $customerName,
            'Street' => $street,
            'City' => $city,
            'Region' => $region,
            'PostalCode' => $postalCode,
            'IsoCountry' => $isoCountry,
            'FriendlyName' => $options['friendlyName'],
            'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']),
            'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']),
        ));

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

        return new AddressInstance($this->version, $payload, $this->solution['accountSid']);
    }
public function create ( $ customerName , $ street , $ city , $ region , $ postalCode , $ isoCountry , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'CustomerName' => $ customerName , 'Street' => $ street , 'City' => $ city , 'Region' => $ region , 'PostalCode' => $ postalCode , 'IsoCountry' => $ isoCountry , 'FriendlyName' => $ options [ 'friendlyName' ] , 'EmergencyEnabled' => Serialize :: booleanToString ( $ options [ 'emergencyEnabled' ] ) , 'AutoCorrectAddress' => Serialize :: booleanToString ( $ options [ 'autoCorrectAddress' ] ) , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new AddressInstance ( $ this -> version , $ payload , $ this -> solution [ 'accountSid' ] ) ; }
Create a new AddressInstance

@param string $customerName The name to associate with the new address
@param string $street The number and street address of the new address
@param string $city The city of the new address
@param string $region The state or region of the new address
@param string $postalCode The postal code of the new address
@param string $isoCountry The ISO country code of the new address
@param array|Options $options Optional Arguments
@return AddressInstance Newly created AddressInstance
@throws TwilioException When an HTTP error occurs.
Create a new AddressInstance