Skip to content

A Giphy API Client for Dart compatible with all platforms

License

Notifications You must be signed in to change notification settings

java-james/giphy_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giphy_api_client

A Giphy API Client for Dart compatible with all platforms

Forked from https://pub.dev/packages/giphy_client Credit to author(s) of original repo Forked and added null safety due to inactivity on attempts to merge on repo

Usage

First, register an app at the Giphy Developers Portal.

Then, follow the instructions below:

import 'package:giphy_api_client/giphy_api_client.dart';

main() async {
  // Create the client with an api key
  //
  // Visit https://developers.giphy.com to obtain a key
  final client = new GiphyClient(apiKey: 'your_api_key_here');

  // Fetch & print a collection of trending gifs
  final gifs = await client.trending();

  print(gifs);

  // Fetch & print a collection with options
  final nsfwGifs = await client.trending(
    offset: 1,
    limit: 10,
    rating: GiphyRating.r,
  );

  print(nsfwGifs);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

A Giphy API Client for Dart compatible with all platforms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%