trending: Trending GIFs

Description Usage Arguments Details Author(s) Examples

Description

Fetch GIFs currently trending online. Hand curated by the Giphy editorial team. The data returned mirrors the GIFs showcased on the Giphy homepage. Returns 25 results by default.

Usage

1
2
trending(limit = 25, rating = NULL, sticker = FALSE,
  api_key = "dc6zaTOxFJmzC")

Arguments

limit

- The number of results to return, up to 100. The default is limit=25.

rating

- A rating for age appropriate gifs. Options include "y", "g", "pg", "pg-13" and "r".

sticker

Should a GIF be returned or an animated sticker (with transparent background)? Default to FALSE.

api_key

- Giphy provides a default api_key value for public beta testing: "dc6zaTOxFJmzC". This is the default value.

Details

Finds gifs that are currently trending through giphy's services. Be aware that failure to use the rating tag may result in gifs that are not safe for work use. The default API key used here is for testing purposes only. More information on the use of the giphy API is available at https://github.com/Giphy/GiphyAPI

Author(s)

Simon J. Goring simon.j.goring@gmail.com

Examples

1
2
3
4
5
6
gif <- trending(rating = 'pg', limit = 10)
plot(gif, n = 2)

# Generate a smaller gif with transparent background using the sticker flag:
gif <- trending(rating = 'pg', limit = 10, sticker = TRUE)
plot(gif, n = 2)

SimonGoring/giphyR documentation built on May 9, 2019, 1:06 a.m.