上QQ阅读APP看书,第一时间看更新
API
The Giphy API is quite easy to understand and use. You can find the official API documents here: https://github.com/Giphy/GiphyAPI.
The APIs that we are going to consume are:
- Random Gif: http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC
- Trending Gifs: http://api.giphy.com/v1/gifs/trending?api_key=dc6zaTOxFJmzC
- Search Gifs: http://api.giphy.com/v1/stickers/search?q=cat&api_key=dc6zaTOxFJmzC
You can navigate to the preceding links to see the sample data.
At the time of writing, Giphy exposed dc6zaTOxFJmzC as the API key to use.