The Cloud Convert API offers a robust solution for file conversion, supporting a vast array of file formats. With Pipedream, you can harness this versatility to create automated workflows that trigger file conversions, process the resulting files, and integrate with other services. By combining Cloud Convert with Pipedream's connectivity to hundreds of apps, you can craft custom automation that saves time and removes the friction from multi-format file management tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloud_convert: {
type: "app",
app: "cloud_convert",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cloudconvert.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.cloud_convert.$auth.oauth_access_token}`,
},
})
},
})
Bulk Document Conversion: Automatically convert a batch of documents from Google Drive to PDF whenever a new file is added to a specific folder. Utilize Pipedream's Google Drive integration to monitor the folder and trigger the Cloud Convert API to perform the conversion, then save the PDFs back to Google Drive.
Image Optimization for Web: Create a workflow where high-resolution images uploaded to Dropbox are automatically optimized for web use by converting them to a compressed format with Cloud Convert. After conversion, use Pipedream to upload the optimized images to a content delivery network like Amazon S3 for fast and efficient web serving.
Audio/Video Transcoding for Social Media: Set up a Pipedream workflow that takes newly recorded podcasts or videos from a platform like Zoom, transcodes them into formats suitable for social media platforms using Cloud Convert, and then posts the media to YouTube or SoundCloud. This streamlines the process of sharing content across various channels.
Emit new event when a CloudConvert job has failed. See the documentation
Emit new event when a CloudConvert job has been completed. See the documentation
Emit new event when a new job has been created. See the documentation
Converts an input file to a specified output format using CloudConvert. See the documentation
Creates an archive in a specified format. See the documentation
Creates a task to import a file from a URL. See the documentation
Combines multiple input files into a single PDF file and create an export URL with a job. See the documentation
Cloud Convert uses OAuth authentication. When you connect your Cloud Convert account, Pipedream will open a popup window where you can sign into Cloud Convert and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Cloud Convert API.
Pipedream requests the following authorization scopes when you connect your account:
user.read
user.write
task.read
task.write
webhook.read
webhook.write
GET
https://cloudconvert.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://cloudconvert.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://cloudconvert.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}