Giter Site home page Giter Site logo

wallhaven_api's Introduction

Wallhaven API

This package is a wrapper written in the Dart programming language for Wallhaven API calls.

Features

WallhavenApiClient can provide wrappers for the endpoints listed under Wallhaven API documentation.

Getting started

To use package include wallhaven_api in your pubspec.yaml file.

dependencies:
  wallhaven_api: ^0.1.0

Usage

Initialize API Client:

WallhavenApiClient api = WallhavenApiClient();

Get wallpaper by ID:

try {
  Wallpaper wallpaper = await api.wallpaper('id');
  print(wallpaper.data.path);
} catch (e) {
  if (e is WallhavenException) {
    print(e.error);
  }
}

Rate Limiting and Errors

Please follow the guideline from the official API documentation.

Package Limitations

Here is a list of known limitations that will be resolved in the future:

  • No possibility for including a header to the request.
  • Missing query params for a search endpoint.
  • No error codes.

Additional Information

Feel free to create a new issue if you found any problem with the package.

Create a discussion in case you think some features are missing.

wallhaven_api's People

Contributors

rozpo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.