Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianegan/giphy_client
A Giphy API Client for Dart compatible with all platforms
https://github.com/brianegan/giphy_client
dart flutter giphy giphy-api
Last synced: about 4 hours ago
JSON representation
A Giphy API Client for Dart compatible with all platforms
- Host: GitHub
- URL: https://github.com/brianegan/giphy_client
- Owner: brianegan
- License: mit
- Created: 2018-04-29T14:05:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-16T19:16:36.000Z (about 3 years ago)
- Last Synced: 2024-10-08T08:00:43.573Z (about 1 month ago)
- Topics: dart, flutter, giphy, giphy-api
- Language: Dart
- Size: 28.3 KB
- Stars: 22
- Watchers: 3
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# giphy_client
[![Build Status](https://travis-ci.org/brianegan/giphy_client.svg?branch=master)](https://travis-ci.org/brianegan/giphy_client) [![codecov](https://codecov.io/gh/brianegan/giphy_client/branch/master/graph/badge.svg)](https://codecov.io/gh/brianegan/giphy_client)A Giphy API Client for Dart compatible with all platforms
## Usage
First, register an app at the [Giphy Developers Portal](https://developers.giphy.com).
Then, follow the instructions below:
```dart
import 'package:giphy_client/giphy_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][tracker].
[tracker]: http://github.com/brianegan/giphy_client/issues/new