Skip to content

dartclub/cloudinary_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudinary_client

Dart wrapper for cloudinary apis.

usage

initialization

CloudinaryClient client = CloudinaryClient(<API_KEY, <API_SECRET>, <cloud_name>);

uploading images

Single Image upload

 
  CloudinaryResponse response = await client.uploadImage(<path>,filename:<optional>, folder:<optional>);
  // response object will contain image url.
  

multiple image upload

_path = await FilePicker.getFilePath(type: _pickingType, fileExtension: _extension);

List<String> result = await client.uploadImagesStringResp([_path]);
// will return list of url of images uploaded

with cloudinary standard response

  List<CloudinaryResponse> result = await client.uploadImages([_path]);

cloudinary response classs

class CloudinaryResponse {
  String public_id;
  int version;
  int width;
  int height;
  String format;
  String created_at;
  String resource_type;
  List<Object> tags;
  int bytes;
  String type;
  String etag;
  String url;
  String secure_url;
  String signature;
  String original_filename;
  String error;
 }

About

dart wrapper for cloudinary rest apis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%