Skip to main content

Crate swgoh_gg

Crate swgoh_gg 

Source
Expand description

§Raw swgoh.gg API Bindings

This crate contains raw API Bindings to the swgoh.gg API.

To use this crate you will have to acquire an API access token from your profile settings.

Once acquired, set it as the environment variable SWGOH_GG_ACCESS_KEY and create a Client:

§Example

let client = swgoh_gg::Client::new().expect("API token is set");
// now you have access to API

Check out the Docs for more information.

Modules§

types
Types returned by the API responses

Structs§

Client
A persistent client for querying the swgoh.gg API.

Enums§

Error
Error when sending a request to the API server

Constants§

RATE_LIMIT
Artificial rate limit to comply with the usage terms.
SWGOH_GG_ACCESS_KEY
The env variable containing the access key to create a Client.