Giter Club home page Giter Club logo

imgur.dart's Introduction

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

imgur.dart's People

Contributors

shellbear avatar yudaprama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imgur.dart's Issues

Can I upload Videos as well?

Thanks for this amazing plugin!
Example only shows how to upload images but imgur also accepts videos.

Can I upload videos using this plugin?
If not can you please add that feature as well.

Thanks again.

Update http version

Is it possible to update the http version of the package to the most recent version?

I am getting an error since I use a higher version for my current project.

GET all image Failed

final client = imgur.Imgur(imgur.Authentication.fromToken(imgurToken));

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

this fails. with error Instance of Response.

Flutter Web support?

Does it work on flutter web? Since firesbase_storage doesn't support flutter web, this lib could be very helpful if it supports web.
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.