public function create($fieldType, $uniqueName) {
        $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, ));

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

        return new FieldInstance(
            $this->version,
            $payload,
            $this->solution['assistantSid'],
            $this->solution['taskSid']
        );
    }
public function create($fieldType, $uniqueName) {
        $data = Values::of(array('FieldType' => $fieldType, 'UniqueName' => $uniqueName, ));

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

        return new FieldInstance(
            $this->version,
            $payload,
            $this->solution['assistantSid'],
            $this->solution['taskSid']
        );
    }
public function create ( $ fieldType , $ uniqueName ) { $ data = Values :: of ( array ( 'FieldType' => $ fieldType , 'UniqueName' => $ uniqueName , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new FieldInstance ( $ this -> version , $ payload , $ this -> solution [ 'assistantSid' ] , $ this -> solution [ 'taskSid' ] ) ; }
Create a new FieldInstance

@param string $fieldType The Field Type of this field
@param string $uniqueName An application-defined string that uniquely
identifies the new resource
@return FieldInstance Newly created FieldInstance
@throws TwilioException When an HTTP error occurs.
Create a new FieldInstance