Project

giphyrb

0.0
No commit activity in last 3 years
No release in over 3 years
A simple Giphy API Wrapper supporting Stickers API and Stickers packs (untested)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

GiphyRB

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'giphyrb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install giphyrb

Usage

Create a Giphy object with

giphy = GiphyRB::Giphy.new api_key: 'YOUR_API_KEY'

Now, you can use it to get some gifs

Trending

giphy.trending(limit=5, offset=0, rating='g')
=> GiphyRB::Responses::Trending

Translate

giphy.translate(string)
=> GiphyRB::Responses::Translate

Search

giphy.search(query, limit=5, offset=0, rating='g', lang=nil)
=> GiphyRB::Responses::Search

Random

giphy.random(tag=nil, rating='g')
=> GiphyRB::Responses::Random

GIF by ID

giphy.from_id(id)
=> GiphyRB::Response

GIFs by IDs

giphy.from_ids(ids=[])
=> GiphyRB::Response

License

See LICENSE for details.

TODO list

  • Add Stickers packs
  • Improve user experience (new syntax)