tenor 1.0.4 copy "tenor: ^1.0.4" to clipboard
tenor: ^1.0.4 copied to clipboard

outdated

Fetch Tenor Gifs on dart client and server + on Flutter.

example/main.dart

import 'package:tenor/tenor.dart';

void main() async {
  // replce 'ApiKey' with your own key -> 'You Own Api Key'
  var apiKey = 'ApiKey';
  var api = Tenor(apiKey: '$apiKey');

  var res = await api.searchGIF('donate', limit: 5);

  if (res != null) {
    res.results.forEach((tenorResult) {
      var title = tenorResult.title;
      var media = tenorResult.media;
      print('$title: gif      : ${media?.gif?.previewUrl?.toString()}');
    });
    await res.fetchNext().then((nextResult) {
      print('next results');
      nextResult.results.forEach((tenorResult) {
        var title = tenorResult.title;
        var media = tenorResult.media;
        print('$title: gif      : ${media?.gif?.previewUrl?.toString()}');
      });
    });
  }
}
16
likes
0
pub points
72%
popularity

Publisher

verified publisherjustkawal.dev

Fetch Tenor Gifs on dart client and server + on Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, universal_io

More

Packages that depend on tenor