Module api_client

Source
Available on crate feature api_client only.
Expand description

An optional API client feature using reqwest

Besides using this, you could instead easily implement your own client using a different HTTP library with the racal::Queryable trait. Though this does additionally support unwrapping the message/data of the VRChat API responses.

If you’re implementing your own API client, you need to implement two possible API states:

  1. vrc::query::NoAuthentication

Doesn’t require authentication but still needs to be rate limited properly.

  1. vrc::model::UserSession

Requires the Authorization header in addition to the rate limiting.

Structs§

AuthenticatedVRC
The main API client with authentication
UnauthenticatedVRC
The main API client without authentication

Enums§

ApiError
An error that may happen with an API query

Traits§

ApiClient
An API client that can be used to create queries