pikvn_client

Last updated:

0 purchases

pikvn_client Image
pikvn_client Images
Add to Cart

Description:

pikvn client

A library to upload image to https://2.pik.vn.
Usage #

Install package

https://pub.dev/packages/pikvn_client
Add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
pikvn_client: ^0.0.7
copied to clipboard

Usage

import 'dart:io';

import 'package:pikvn_client/pikvn_client.dart';

void main() async {
final client = PikVnClient();
final imageFile = File('test/data/test.jpeg');
final uploadedUrl = await client.uploadImage(imageFile);

print('Uploaded url: $uploadedUrl');
//Uploaded: https://2.pik.vn/20214bfff7a7-9a44-46f8-950f-56e1577f6f56.jpg
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.