UNPKG

scidapi-client

Version:

Supercell ID API client

20 lines (19 loc) 741 B
import { IdentifierType, IdentifierTypeArray } from "./types/index.js"; /** * Client for interacting with the Supercell ID (SCID) API. */ declare class SCIDClient { private scidToken; private rfpKeyHex; private DEFAULT_USER_AGENT; private DEFAULT_HEADERS; constructor(scidToken: string, rfpKeyHex: string); private scidRequest; getProfile(input: string | null, type: IdentifierType): Promise<any>; getProfileList(list: string[], type: IdentifierTypeArray): Promise<any>; getFriends(scid?: string | null): Promise<any>; sendFriendRequest(list: string[]): Promise<any>; acceptFriendRequest(list: string[]): Promise<any>; removeFriends(scid: string): Promise<any>; } export default SCIDClient;