dartmagur 0.1.3 copy "dartmagur: ^0.1.3" to clipboard
dartmagur: ^0.1.3 copied to clipboard

discontinued
outdatedDart 1 only

Imagur wrapper for Dart

dartmagur Pub documentation #

Imagur library for dart.

Docs #

Dartdocs #

Dartdocs

Documentation #

Dartmagur class is main point of library. For now you can initialize it only with clientId. Library don't supports POST endpoints - Work in Progress.

var dartmagur = new Dartmagur("<YOU CLIENT ID>");

From there you have few options

Get Album

Future<Album> getAlbum(String id);
  • id - id of album

Get Gallerys

This endpoint returns list of Imagur's gallerys. Results can be filtered with optional parameters.

Future<List<Gallery>> getGallerys
  ({String section: "hot", String sort: "viral", int page: 0, 
    String window: "day", bool showViral: true, bool mature: true, })
  • section - Section to where search for gallery. hot | top | user. Defaults to hot
  • sort - How to sort results. viral | top | time | rising (only available with user section). Defaults to viral
  • page - page number
  • window - Change the date range of the request if the section is top. Accepted values are day | week | month | year | all. Defaults to day

Gets gallery based on given id

 Future<Gallery> getGallery(String id)
  • id - Gallery id

Get Subreddit

Gets list of images on subreddit

 Future<List<Image>> getSubreddit(String id, {String sort: "time", int page: 0, String window: "week"})
  • id - id of subreddit
  • sort - How to sort results. viral | top | time | rising (only available with user section). Defaults to viral
  • page - page number
  • window - Change the date range of the request if the section is top. Accepted values are day | week | month | year | all. Defaults to day

Searches for Gallery with list fo keywords.

Future<List<Gallery>> searchGallery(List<String> query, {String sort: "time", String window: "all", int page: 0})
  • query - list of keywords. All keywords are automatically ORed.
  • sort - How to sort results. viral | top | time | rising (only available with user section). Defaults to viral
  • page - page number
  • window - Change the date range of the request if the section is top. Accepted values are day | week | month | year | all. Defaults to day
0
likes
10
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

Imagur wrapper for Dart

Homepage

License

unknown (license)

Dependencies

w_transport

More

Packages that depend on dartmagur