Add this line to your application's Gemfile:
gem 'giphyrb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install giphyrb
Create a Giphy object with
giphy = GiphyRB::Giphy.new api_key: 'YOUR_API_KEY'Now, you can use it to get some gifs
giphy.trending(limit=5, offset=0, rating='g')
=> GiphyRB::Responses::Trendinggiphy.translate(string)
=> GiphyRB::Responses::Translategiphy.search(query, limit=5, offset=0, rating='g', lang=nil)
=> GiphyRB::Responses::Searchgiphy.random(tag=nil, rating='g')
=> GiphyRB::Responses::Randomgiphy.from_id(id)
=> GiphyRB::Responsegiphy.from_ids(ids=[])
=> GiphyRB::ResponseSee LICENSE for details.
- Add Stickers packs
- Improve user experience (new syntax)