Public
Back
Version 22
2/28/2023
espntcFindGroups = async (
options: {
search?: string,
access?: "all" | "public" | "private",
type?: "all" | "celebrity" | "fans",
locked?: "all" | "unlocked" | "locked",
dropWorst?: boolean,
start?: number,
num?: number,
} = {}
) => {
const baseURL =
"https://fantasy.espncdn.com/tournament-challenge-bracket/2023/en/api/findGroups?";
const params: {} = { ...options };
if (options.access)
params.access = ["all", "public", "private"].indexOf(options.access);
return new URLSearchParams(options).toString();
return stevekrouse.fetchJSON(
"https://fantasy.espncdn.com/tournament-challenge-bracket/2023/en/api/findGroups?type_access=0&type_group=2&type_lock=0&type_dropWorst=0&start=0&num=30&search="
);
};
Updated: October 23, 2023