0 purchases
cloudinary api
Cloudinary Dart SDK #
About #
The Cloudinary API Dart SDK allows you to quickly and easily integrate your application with Cloudinary.
Effortlessly upload your assets to your cloud.
As Flutter is build on the Dart language, understanding the Dart SDK is essential for utilizing the capabilities of the Flutter SDK, as well. For more information about the Flutter SDK, see the Cloudinary Flutter documentation.
Note #
This Readme provides basic installation and usage information.
Table of Contents #
Key Features
Version Support
Installation
Usage
Setup
Upload
Key Features #
Transform and optimize assets. Visit our documentation to learn more about media optimization and transformations.
Version Support #
SDK Version
Dart Version
1.x
> 1.0
Installation #
To use this SDK, add cloudinary as a dependency in your pubspec.yaml file.
dependencies:
cloudinary_api: ^1.0.0
cloudinary_url_gen: ^1.0.0
copied to clipboard
Usage #
Setup #
The Cloudinary class is the main entry point for using the library. Your cloud_name is required to create an instance of this class. Your api_key and api_secret are also needed to perform secure API calls to Cloudinary (e.g., image and video uploads). Setting the configuration parameters can be done either programmatically using an appropriate constructor of the Cloudinary class or globally using an environment variable. You can find your account-specific configuration parameters in the Dashboard page of your account console.
Here's an example of setting configuration parameters in your Dart application:
import 'package:cloudinary_url_gen/cloudinary.dart';
var cloudinary = Cloudinary.fromStringUrl('cloudinary://<your-api-key>:<your-api-secret>@<your-cloud-name>');
copied to clipboard
Upload #
To upload a file you need to call you cloudinary object with uploader(), here's an example:
var response = cloudinary.uploader().upload(file);
copied to clipboard
Contributions #
See contributing guidelines.
Get Help #
If you run into an issue or have a question, you can either:
Open a GitHub issue (for issues related to the SDK)
Open a support ticket (for issues related to your account)
About Cloudinary #
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
Additional Resources #
Cloudinary Transformation and REST API References: Comprehensive references, including syntax and examples for all SDKs.
MediaJams.dev: Bite-size use-case tutorials written by and for Cloudinary Developers.
DevJams: Cloudinary developer podcasts on YouTube.
Cloudinary Academy: Free self-paced courses, instructor-led virtual courses, and on-site courses.
Code Explorers and Feature Demos: A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
Cloudinary Roadmap: Your chance to follow, vote, or suggest what Cloudinary should develop next.
Cloudinary Facebook Community: Learn from and offer help to other Cloudinary developers.
Cloudinary Account Registration: Free Cloudinary account registration.
Cloudinary Website: Learn about Cloudinary's products, partners, customers, pricing, and more.
Licence #
Released under the MIT license.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.