pexels_null_safety 0.1.2 copy "pexels_null_safety: ^0.1.2" to clipboard
pexels_null_safety: ^0.1.2 copied to clipboard

Unofficial wrapper of Pexels REST API for the Dart Language.

example/example.dart

// import "dart:io";
// import "../lib/pexels_null_safety.dart";
//
// void main() async {
//   var client = new PexelsClient('key');
//
//   var p = await client.getPhoto(); // get a random video.
//   var link = p.get(ImageFormats.small);
//   stdout.write(link);
//
//   var vid = await client.getVideo(id: 857251);
//   stdout.write(vid.sources[0].link);
//
//   var result = await client.searchPhotos("tree");
//   var photo = result[0];
//   stdout.write(photo.sources['original']!.link);
//
//   var result2 = await client.searchVideos("balloon");
//   var video = result2[0];
//   stdout.write(video.sources[0].link);
//
//   var quota = await client.getQuota();
//   stdout.write(quota);
// }
6
likes
120
pub points
39%
popularity

Publisher

unverified uploader

Unofficial wrapper of Pexels REST API for the Dart Language.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on pexels_null_safety