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::Trending
giphy.translate(string)
=> GiphyRB::Responses::Translate
giphy.search(query, limit=5, offset=0, rating='g', lang=nil)
=> GiphyRB::Responses::Search
giphy.random(tag=nil, rating='g')
=> GiphyRB::Responses::Random
giphy.from_id(id)
=> GiphyRB::Response
giphy.from_ids(ids=[])
=> GiphyRB::Response
See LICENSE for details.
- Add Stickers packs
- Improve user experience (new syntax)