Expand description

API Wrapper for the TASVideos API.

This crate provides synchronous functions for each supported endpoint of the API.

All requests can be used without an API key, however, the USER_AGENT string should be set before making any requests.

Structs

Represents a TASVideos game.
Represents a TASVideos game version (e.g. ROM).
Represents a TASVideos movie publication.
Represents a TASVideos movie submission.
Represents a gaming system (e.g. GBA, N64, Genesis, etc.) used by TASVideos.
Describes a possible framerate for a gaming system.

Enums

Some endpoints can use these filters to refine what data is returned.

Constants

Statics

The base URL used in all requests to the TASVideos API. Default is https://tasvideos.org/api/v1/.
The User-Agent header used in all requests made from this crate.

Functions

Creates a GET request builder for the TASVideos API.
Executes a GET request to the /Games/{id} endpoint to retrieve a specific game.
Executes a GET request to the /Games endpoint to retrieve a list of games.
Executes one or more GET requests to the /Games endpoint to retreive all available games.
Executes a GET request to the /Publications/{id} endpoint to retrieve a specific publication.
Attempts to download the publication’s movie file.
Executes a GET request to the /Publications endpoint to retrieve a list of publications.
Executes one or more GET requests to the /Publications endpoint to retreive all available publications.
Executes a GET request to the /Submissions/{id} endpoint to retrieve a specific submission.
Attempts to download the submission’s movie file.
Executes a GET request to the /Submissions endpoint to retrieve a list of submissions.
Executes one or more GET requests to the /Submissions endpoint to retreive all available submissions.
Executes a GET request to the /Systems/{id} endpoint to retrieve a specific system.
Executes a GET request to the /Systems endpoint to retrieve a list of all systems.
Attempts to download a userfile.
Helper fuction that sets the static USER_AGENT string used in API requests.

Type Definitions