@retroachievements/api
Version:
A well-tested library that lets you get achievement, user, and game data from RetroAchievements.
28 lines (27 loc) • 858 B
TypeScript
import type { AuthObject } from "../utils/public";
import type { UserClaims } from "./models";
/**
* A call to this function will retrieve a list of
* achievement set claims made over the lifetime of a given
* user, targeted by their username.
*
* @param authorization An object containing your username and webApiKey.
* This can be constructed with `buildAuthorization()`.
*
* @param payload.username The user for which to retrieve the historical
* achievement set claims list for.
*
* @example
* ```
* const userClaims = await getUserClaims(
* authorization,
* { username: "Jamiras" }
* );
* ```
*
* @returns An array containing all the achievement set claims
* made over the lifetime of the given user.
*/
export declare const getUserClaims: (authorization: AuthObject, payload: {
username: string;
}) => Promise<UserClaims>;