request library

Classes

ApiClient
Client responsible for executing HTTP requests against the RetroAchievements API.

Constants

apiBaseUrl → const String
packageVersion → const String

Properties

defaultApiClient ApiClient
Global shared ApiClient instance used for convenience calls.
final

Functions

buildRequestUrl(String baseUrl, String endpointUrl, AuthObject authObject, {Map<String, dynamic> args = const {}}) String
Constructs a full RetroAchievements API URL with path parameters, authentication credentials (z and y), and additional query parameters.
call({required String url, Client? client, Map<String, String>? headers}) Future
Fetch a RetroAchievements HTTP resource.
naiveCamelCase(String originalValue) String
Converts API key formats (PascalCase, ALLCAPS, abbreviations) into idiomatic camelCase.
replaceDoubleSlashes(String input) String
Normalizes redundant consecutive slashes in a URL while preserving the protocol.
serializeProperties(dynamic originalData, {List<String>? shouldCastToNumbers, List<String>? shouldMapToBooleans}) → dynamic
Recursively normalizes response data by transforming keys to camelCase and optionally casting specified properties to numbers or booleans.

Exceptions / Errors

RetroAchievementsApiException
Exception thrown when a RetroAchievements API request fails.