pexels_api 0.2.0 copy "pexels_api: ^0.2.0" to clipboard
pexels_api: ^0.2.0 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);
// }
4
likes
130
pub points
33%
popularity

Publisher

verified publisherpurefun.dev

Unofficial wrapper of Pexels REST API for the Dart Language.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

http

More

Packages that depend on pexels_api