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

        $data = Values::of(array(
            'CertificateData' => $certificateData,
            'FriendlyName' => $options['friendlyName'],
            'DeviceSid' => $options['deviceSid'],
        ));

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

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

        $data = Values::of(array(
            'CertificateData' => $certificateData,
            'FriendlyName' => $options['friendlyName'],
            'DeviceSid' => $options['deviceSid'],
        ));

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

        return new CertificateInstance($this->version, $payload, $this->solution['fleetSid']);
    }
public function create ( $ certificateData , $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'CertificateData' => $ certificateData , 'FriendlyName' => $ options [ 'friendlyName' ] , 'DeviceSid' => $ options [ 'deviceSid' ] , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new CertificateInstance ( $ this -> version , $ payload , $ this -> solution [ 'fleetSid' ] ) ; }
Create a new CertificateInstance

@param string $certificateData The public certificate data.
@param array|Options $options Optional Arguments
@return CertificateInstance Newly created CertificateInstance
@throws TwilioException When an HTTP error occurs.
Create a new CertificateInstance