export type DeleteApiGamesV1managementApplicationsApplicationIdPlayersHiddenPlayerIdArgs = {applicationId: string, playerId: string}; export type DeleteApiGamesV1managementApplicationsApplicationIdPlayersHiddenPlayerIdOptions = {baseUrl?: string | undefined, Oauth2?: string | undefined, Oauth2c?: string | undefined, fetch?: typeof fetch | undefined}; /** * Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console. * * DELETE /games/v1management/applications/{applicationId}/players/hidden/{playerId} */ export const deleteApiGamesV1managementApplicationsApplicationIdPlayersHiddenPlayerId = async (args: DeleteApiGamesV1managementApplicationsApplicationIdPlayersHiddenPlayerIdArgs, options?: DeleteApiGamesV1managementApplicationsApplicationIdPlayersHiddenPlayerIdOptions) => { const {baseUrl = "https://gamesmanagement.googleapis.com", fetch: fetchFn = fetch, Oauth2, Oauth2c} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (Oauth2 !== undefined) headers.set('authorization', `Bearer ${Oauth2}`) if (Oauth2c !== undefined) headers.set('authorization', `Bearer ${Oauth2c}`) const url = `${baseUrl.replace(/\/+$/, '')}/games/v1management/applications/${encodeURIComponent(String(args.applicationId))}/players/hidden/${encodeURIComponent(String(args.playerId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };