GiphyApi.Gif (giphy_api v0.1.1)

Copy Markdown View Source

Struct representing a Giphy GIF with pre-selected URLs for common use cases.

Summary

Functions

Parse a Giphy API response item into a Gif struct.

Types

t()

@type t() :: %GiphyApi.Gif{
  downsized_url: String.t(),
  id: String.t(),
  original_height: integer(),
  original_url: String.t(),
  original_width: integer(),
  preview_height: integer(),
  preview_url: String.t(),
  preview_width: integer(),
  title: String.t(),
  url: String.t(),
  username: String.t() | nil
}

Functions

from_api(data)

Parse a Giphy API response item into a Gif struct.