Overview
Welcome to the Cloudinary integration guide for Julep! This integration allows you to manage and transform media files efficiently, enabling you to build workflows that require robust media processing capabilities. Whether you’re uploading images or editing videos, this guide will walk you through the setup and usage.Prerequisites
To use the Cloudinary integration, you need an API key, API secret, and cloud name. You can obtain these by signing up at Cloudinary.
How to Use the Integration
To get started with the Cloudinary integration, follow these steps to configure and create a task:1
Configure Your API Key
Add your API key, API secret, and cloud name to the tools section of your task. This will allow Julep to authenticate requests to Cloudinary on your behalf.
2
Create Task Definition
Use the following YAML configuration to define your media processing task:
Cloudinary Example
YAML Explanation
Basic Configuration
Basic Configuration
- name: A descriptive name for the task, in this case, “Cloudinary Task”.
- tools: This section lists the tools or integrations being used. Here,
cloudinary_toolis defined as an integration tool.
Tool Configuration
Tool Configuration
- type: Specifies the type of tool, which is
integrationin this context. - integration: Details the provider and setup for the integration.
- provider: Indicates the service provider, which is
cloudinaryfor Cloudinary. - method: Specifies the method to use, either
media_uploadormedia_edit. Defaults tomedia_editif not specified. - setup: Contains configuration details
- cloudinary_cloud_name: (Required) The cloud name of the Cloudinary account.
- cloudinary_api_key: (Required) The API key of the Cloudinary account.
- cloudinary_api_secret: (Required) The API secret of the Cloudinary account.
- params: (Optional) Optional parameters for the configuration.
- provider: Indicates the service provider, which is
Workflow Configuration
Workflow Configuration
- main: Defines the main execution steps.
- tool: Refers to the tool defined earlier (
cloudinary_tool). - arguments: Specifies the input parameters for the tool:
media_upload
- file: The URL of the file to upload. More details can be found in the Cloudinary documentation.
- public_id: (optional) Optional public ID for the uploaded file. Defaults to None.
- upload_params: (optional) Optional transformations for the upload. Defaults to None.
- return_base64: (optional) Whether to return the file in base64 encoding. Defaults to False.
media_edit
- public_id: The public ID of the file to edit.
- transformation: The transformations to apply to the file.
- return_base64: Whether to return the transformed file in base64 encoding.
- tool: Refers to the tool defined earlier (
Remember to replace
CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET with your actual credentials.The different parameters available for the Cloudinary integration can be found in the Cloudinary API documentation.