imgur 1.1.1 copy "imgur: ^1.1.1" to clipboard
imgur: ^1.1.1 copied to clipboard

A high-level Imgur API Client Library that uses Imgur's v3 API.

imgur.dart #

An Imgur API Client Library that uses Imgur's v3 API for Dart.

pub package workflow status

Usage #

A simple usage example to get your uploaded images:

import 'package:imgur/imgur.dart' as imgur;

main() async {
  final client = imgur.Imgur(imgur.Authentication.fromToken('YOUR_IMGUR_ACCESS_TOKEN'));

  /// Get your uploaded images
  final resp = await client.account.getImages();

  print(resp);
}

Upload an image:

import 'package:imgur/imgur.dart' as imgur;

main() async {
  final client = imgur.Imgur(imgur.Authentication.fromToken('YOUR_IMGUR_ACCESS_TOKEN'));

  /// Upload an image from path
  await client.image
      .uploadImage(
          imagePath: '/path/of/the/image.png',
          title: 'A title',
          description: 'A description')
      .then((image) => print('Uploaded image to: ${image.link}'));
}

Documentation #

A generated documentation is available at pub.dev.

Testing #

pub run test

Contributing #

You are interested in contributing please see the CONTRIBUTING.md file which will tell you more about:

  • Styling your contributions
  • Submitting issues and/or pull requests

Credits #

License #

This project is licensed under the MIT License - see the LICENSE file for details

Contributors ✨ #

Thanks goes to these wonderful people:


yudaprama

7
likes
30
pub points
61%
popularity

Publisher

verified publishershellbear.me

A high-level Imgur API Client Library that uses Imgur's v3 API.

Repository (GitHub)
View/report issues
Contributing

License

MIT (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on imgur