Crate giphy_api[][src]

A rust library for interacting with the Giphy API.

For more information, the Giphy API is documented at developers.giphy.com/docs/api#quick-start-guide.

Example:

use giphy_api::Giphy;

async fn get_gif() {
    // Initialize the Giphy client.
    let giphy_client = Giphy::new_from_env();

    // Get a list of gifs based on a search.
    let gifs = giphy_client.search_gifs("toddlers and tiaras", 5, "pg-13").await.unwrap();

    for gif in gifs {
        println!("{:?}", gif);
    }
}

Structs

APIError

Error type returned by our library.

Gif

An Giphy record. FROM: https://developers.giphy.com/docs/api/schema/#gif-object

Giphy

Entrypoint for interacting with the Giphy API.

ImageAnimated

Giphy Animated Images object representation.

ImageLooping

Giphy Looping Images object representation.

ImagePreviewGif

Giphy GIF Preview Images object representation.

ImagePreviewMp4

Giphy MP4 Preview Images object representation.

ImageStill

Giphy Still Images object representation.

Images

Giphy Images object representation.

Response

Response object.

User

A Giphy user.