filestack / filestack-python

Official Python SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
48 stars 20 forks source link

AudioVisual should have uuid #20

Closed khankuan closed 7 years ago

khankuan commented 7 years ago

Hi, the av_convert method returns a AudioVisual object but there is no reference to know what is the conversion request id and hence it is impossible to know which handle has been converted from the callback.

staturecrane commented 7 years ago

Hi @khankuan! Thanks for the comment.

The AudioVisual object is intended just as a temporary state, that allows you to check the status (av_object.status) and then convert to filelink once the conversion has been completed (av_object.to_filelink()). Are you saying there is additional information while in that state you would like to know, or are you referring to the eventual information you get back once the conversion is complete?

khankuan commented 7 years ago

Hi, having the status and to_filelink methods are good. Unfortunately, there is a chance there the server would be unavailable before the conversion is done. When the server is up and running and received the webhook for conversion completed, it does not know how to map the conversion result to the original av_object. It would be helpful if we add av_object.get that is similar to av_object.status but returns the full response (which contains the conversion id) instead of just the status.

staturecrane commented 7 years ago

@khankuan Gotcha. That makes complete sense. I will submit this for approval immediately and let you know how quickly you can expect the functionality.

staturecrane commented 7 years ago

@khankuan This functionality is scheduled for our next release.

staturecrane commented 7 years ago

@khankuan A pull request for this feature has been created. We will make a new release once it has been approved.

khankuan commented 7 years ago

Thanks :)

staturecrane commented 7 years ago

This feature has been released. Closing issue