Cloudconvert
Ruby wrapper for CloudConvert
Install / Use
/learn @pandurang90/CloudconvertREADME
⚠️ This wrapper is deprecated. There is an official Ruby SDK for API v2 available in meantime.
Cloudconvert
Ruby wrapper for the CloudConvert API v1
Installation
Add this line to your application's Gemfile:
gem 'cloudconvert', '0.0.5'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cloudconvert -v 0.0.5
Usage
This is a Ruby wrapper for Cloud Convert where you can convert files from one format to another format.
Configure CloudConvert
Cloudconvert.configure do |config|
config.api_key = your_api_key
config.callback = callback_url
end
In this if you specify callback_url then you will be notified on file conversion completion
Start a Conversion on Cloud convert
conversion = Cloudconvert::Conversion.new
# to start file conversion (options & callback_url parameters are optional)
# for versions <=0.0.4
conversion.convert(inputformat, outputformat, file_path, options)
# for versions >=0.0.5 (callback_url passing enabled for each conversion)
conversion.convert(inputformat, outputformat, file_path, callback_url, options)
# options parameter is Conversion type specific options , which you can get from,
conversion.converter_options(inputformat, outputformat)
#it will return all possible conversion types and possible options(inputformat and outputformat are optional)
# to list all conversions
conversion.list_conversions
# to cancel conversion
conversion.cancel_conversion
# to delete conversion
conversion.delete_conversion
# to get download link of completed conversion
conversion.download_link
# to get current status of conversion
conversion.status
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
