cloudinary_client 0.0.9

  • Readme
  • Changelog
  • Installing
  • 75

cloudinary_client #

Dart wrapper for cloudinary apis.

usage #


CloudinaryClient client = new CloudinaryClient(<API_KEY, <API_SECRET>, <cloud_name>);
Response response = await client.uploadImage(<imagepath>, <filename>);
print(response);

[0.0.1] - 20 July 2019.

[0.0.2] - changed text on readme

[0.0.3] - fixed "NoSuchMethodError: The method '+' was called on null.

                Receiver: null
                Tried calling: +("public_id=")"

[0.0.4] - fix to handle public id correctly

[0.0.5] - using StringBuffer to create signature

[0.0.6] - added path separator in base url

[0.0.7] - added cloudinary response model, added method to upload multiple images (using loop, will be updated using cloudinary api support)

[0.0.8] - fixed parsing error for cloudinary response

[0.0.9] - fixed asyc/await issue caused by using forEach loop.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  cloudinary_client: ^0.0.9

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:cloudinary_client/cloudinary_client.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
60
Health:
Code health derived from static analysis. [more]
96
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Primary library: package:cloudinary_client/cloudinary_client.dart with components: io.

Health issues and suggestions

Document public APIs. (-1 points)

56 out of 56 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/data/BaseApi.dart. (-1.99 points)

Analysis of lib/data/BaseApi.dart reported 4 hints:

line 23 col 7: DO use curly braces for all flow control structures.

line 25 col 7: DO use curly braces for all flow control structures.

line 32 col 7: DO use curly braces for all flow control structures.

line 34 col 7: DO use curly braces for all flow control structures.

Fix lib/cloudinary_client.dart. (-0.50 points)

Analysis of lib/cloudinary_client.dart reported 1 hint:

line 4 col 8: Unused import: 'package:dio/dio.dart'.

Fix lib/data/ImageClient.dart. (-0.50 points)

Analysis of lib/data/ImageClient.dart reported 1 hint:

line 2 col 8: Unused import: 'dart:io'.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and cloudinary_client.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
crypto ^2.0.6 2.1.3
dio ^3.0.2 3.0.3
Transitive dependencies
charcode 1.1.2
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
meta 1.1.7
path 1.6.4
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6