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

        $data = Values::of(array(
            'To' => $to,
            'MediaUrl' => $mediaUrl,
            'Quality' => $options['quality'],
            'StatusCallback' => $options['statusCallback'],
            'From' => $options['from'],
            'SipAuthUsername' => $options['sipAuthUsername'],
            'SipAuthPassword' => $options['sipAuthPassword'],
            'StoreMedia' => Serialize::booleanToString($options['storeMedia']),
            'Ttl' => $options['ttl'],
        ));

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

        return new FaxInstance($this->version, $payload);
    }
public function create($to, $mediaUrl, $options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'To' => $to,
            'MediaUrl' => $mediaUrl,
            'Quality' => $options['quality'],
            'StatusCallback' => $options['statusCallback'],
            'From' => $options['from'],
            'SipAuthUsername' => $options['sipAuthUsername'],
            'SipAuthPassword' => $options['sipAuthPassword'],
            'StoreMedia' => Serialize::booleanToString($options['storeMedia']),
            'Ttl' => $options['ttl'],
        ));

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

        return new FaxInstance($this->version, $payload);
    }
public function create ( $ to , $ mediaUrl , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'To' => $ to , 'MediaUrl' => $ mediaUrl , 'Quality' => $ options [ 'quality' ] , 'StatusCallback' => $ options [ 'statusCallback' ] , 'From' => $ options [ 'from' ] , 'SipAuthUsername' => $ options [ 'sipAuthUsername' ] , 'SipAuthPassword' => $ options [ 'sipAuthPassword' ] , 'StoreMedia' => Serialize :: booleanToString ( $ options [ 'storeMedia' ] ) , 'Ttl' => $ options [ 'ttl' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new FaxInstance ( $ this -> version , $ payload ) ; }
Create a new FaxInstance

@param string $to The phone number to receive the fax
@param string $mediaUrl The Twilio-hosted URL of the PDF that contains the
fax
@param array|Options $options Optional Arguments
@return FaxInstance Newly created FaxInstance
@throws TwilioException When an HTTP error occurs.
Create a new FaxInstance