Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shellbear/imgur.dart
A high-level Imgur API Client Library that uses Imgur's v3 API.
https://github.com/shellbear/imgur.dart
api dart dartlang imgur imgur-api
Last synced: 6 days ago
JSON representation
A high-level Imgur API Client Library that uses Imgur's v3 API.
- Host: GitHub
- URL: https://github.com/shellbear/imgur.dart
- Owner: shellbear
- License: mit
- Created: 2019-10-17T15:56:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T19:38:23.000Z (over 4 years ago)
- Last Synced: 2024-05-01T17:52:12.146Z (7 months ago)
- Topics: api, dart, dartlang, imgur, imgur-api
- Language: Dart
- Homepage: https://pub.dev/packages/imgur
- Size: 119 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# imgur.dart
An [Imgur](https://imgur.com/) API Client Library that uses Imgur's v3 API for [Dart](https://dart.dev/).
[![pub package](https://img.shields.io/pub/v/imgur.svg)](https://pub.dev/packages/imgur)
[![workflow status](https://github.com/ShellBear/imgur.dart/workflows/Dart%20CI/badge.svg)](https://github.com/ShellBear/imgur.dart/actions?workflow=Dart+CI)## Usage
A simple usage example to get your uploaded images:
```dart
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:
```dart
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](https://pub.dev/documentation/imgur/latest/).
## Testing
```sh
pub run test
```## Contributing
You are interested in contributing please see the [CONTRIBUTING.md](CONTRIBUTING.md) file which will
tell you more about:* Styling your contributions
* Submitting issues and/or pull requests## Credits
* [IamBlueSlime](https://github.com/IamBlueSlime) - [TalkOpenSource](https://github.com/IamBlueSlime/TalkOpenSource/) for the project layout inspiration
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## Contributors ✨
Thanks goes to these wonderful people: