giphy-api

Crates.iogiphy-api
lib.rsgiphy-api
version0.7.0
sourcesrc
created_at2020-07-09 23:09:02.917266
updated_at2023-07-19 18:18:06.579146
descriptionA fully generated & opinionated API client for the Giphy API.
homepage
repositoryhttps://github.com/oxidecomputer/third-party-api-clients/tree/main/giphy
max_upload_size
id263045
size80,613
(oxideservicebot)

documentation

https://docs.rs/giphy-api/

README

giphy-api

A fully generated, opinionated API client library for Giphy.

docs.rs

API Details

Giphy API

API Terms of Service

Contact

email
support@giphy.com

Client Details

This client is generated from the Giphy OpenAPI specs based on API spec version 1.0. This way it will remain up to date as features are added. The documentation for the crate is generated along with the code to make this library easy to use.

To install the library, add the following to your Cargo.toml file.

[dependencies]
giphy-api = "0.7.0"

Basic example

Typical use will require intializing a Client. This requires a user agent string and set of credentials.

use giphy_api::Client;

let giphy = Client::new(
    String::from("api-key"),
);

Alternatively, the library can search for most of the variables required for the client in the environment:

  • GIPHY_API_KEY

And then you can create a client from the environment.

use giphy_api::Client;

let giphy = Client::new_from_env();
Commit count: 0

cargo fmt