robbiepaul / cloudconvert-laravel

A Laravel wrapper for the CloudConvert API
177 stars 34 forks source link

How to retrieve callback parameters #23

Closed bachras closed 8 years ago

bachras commented 8 years ago

I am using callback function and I want to notify the user when conversion is finished. How to retrieve the process id which is finished with callback? Will multiple conversions will work at the same time? Thank you in advance.

robbiepaul commented 8 years ago

You can get the id like this

$cloudConvert = CloudConvert::useProcess($_REQUEST['url']);
$id = $cloudConvert->getProcess()->id;

Yes it should work with multiple conversions at the same time

bachras commented 8 years ago

Now I get this error: Fatal error: Cannot access private property RobbieP\CloudConvertLaravel\Process::$id

Do you have any ideas?

robbiepaul commented 8 years ago

Yea, just composer update robbiep/cloudconvert-laravel should work now

bachras commented 8 years ago

It is working now. Thanks for fixing it.