CloudConvert\Process::start PHP Method

start() public method

Starts the Process
public start ( array $parameters ) : Process
$parameters array Parameters for creating the Process. See https://cloudconvert.com/apidoc#start
return Process
    public function start($parameters)
    {
        if (isset($parameters['file']) && gettype($parameters['file']) == 'resource') {
            $file = $parameters['file'];
            unset($parameters['file']);
            if (isset($parameters['wait']) && $parameters['wait']) {
                unset($parameters['wait']);
                $wait = true;
            }
        }
        $this->data = $this->api->post($this->url, $parameters, false);
        if (isset($file)) {
            $this->upload($file);
        }
        if (isset($wait)) {
            $this->wait();
        }
        return $this;
    }