robbiepaul / cloudconvert-laravel

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

Get file information #47

Closed AmirAmin closed 7 years ago

AmirAmin commented 7 years ago

Hello,

There is a method to extract file metadata from PDF, image, video and audio files, is it included in this package? and how to use it.

For more details about it, kindly check the following link: https://cloudconvert.com/api/info

Regards,

robbiepaul commented 7 years ago

Hi Amir,

This functionality exists in the Laravel wrapper. I haven't had a chance to update the README file yet (feel free to make a PR)

This example code should work though:

$response = CloudConvert::file('https://server.com/path/to/video.mp4')
                        ->info()
                        ->response();
AmirAmin commented 7 years ago

Dear Robb,

Thanks for your wonderful efforts. Can you please double check it ? as i have tried it with different links, servers, and it keep giving timeout.

Regards,,

robbiepaul commented 7 years ago

I've issued a hotfix, please do a composer update

AmirAmin commented 7 years ago

Wonderful, it works like a charm.

Tnx Bro.