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

        $data = Values::of(array(
            'AvailableAddOnSid' => $availableAddOnSid,
            'AcceptTermsOfService' => Serialize::booleanToString($acceptTermsOfService),
            'Configuration' => Serialize::jsonObject($options['configuration']),
            'UniqueName' => $options['uniqueName'],
        ));

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

        return new InstalledAddOnInstance($this->version, $payload);
    }
public function create($availableAddOnSid, $acceptTermsOfService, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'AvailableAddOnSid' => $availableAddOnSid,
            'AcceptTermsOfService' => Serialize::booleanToString($acceptTermsOfService),
            'Configuration' => Serialize::jsonObject($options['configuration']),
            'UniqueName' => $options['uniqueName'],
        ));

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

        return new InstalledAddOnInstance($this->version, $payload);
    }
public function create ( $ availableAddOnSid , $ acceptTermsOfService , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'AvailableAddOnSid' => $ availableAddOnSid , 'AcceptTermsOfService' => Serialize :: booleanToString ( $ acceptTermsOfService ) , 'Configuration' => Serialize :: jsonObject ( $ options [ 'configuration' ] ) , 'UniqueName' => $ options [ 'uniqueName' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new InstalledAddOnInstance ( $ this -> version , $ payload ) ; }
Create a new InstalledAddOnInstance

@param string $availableAddOnSid A string that uniquely identifies the
Add-on to install
@param boolean $acceptTermsOfService A boolean reflecting your acceptance of
the Terms of Service
@param array|Options $options Optional Arguments
@return InstalledAddOnInstance Newly created InstalledAddOnInstance
@throws TwilioException When an HTTP error occurs.
Create a new InstalledAddOnInstance