wallhaven_api 0.1.0 copy "wallhaven_api: ^0.1.0" to clipboard
wallhaven_api: ^0.1.0 copied to clipboard

Wallhaven API wrapper for the Dart programming language.

example/wallhaven_api_example.dart

import 'package:wallhaven_api/wallhaven_api.dart';

void main() async {
  WallhavenApiClient api = WallhavenApiClient();

  try {
    Wallpaper wallpaper = await api.wallpaper('id');
    print(wallpaper.data.path);
  } catch (e) {
    if (e is WallhavenException) {
      print(e.error);
    }
  }
}
10
likes
130
points
32
downloads

Publisher

verified publisherrozpo.dev

Weekly Downloads

Wallhaven API wrapper for the Dart programming language.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, json_annotation

More

Packages that depend on wallhaven_api