Skip to content

TypeScript

FutPicks uses OpenAPI as the SDK contract. Generate clients from the public schema or from the checked-in docs schema.

Terminal window
npx @openapitools/openapi-generator-cli generate \
-i https://futpicks.com/api/v1/openapi/v1.json \
-g typescript-fetch \
-o ./clients/typescript/generated
export function futPicksHeaders(token: string): HeadersInit {
return {
Authorization: `Bearer ${token}`,
Accept: 'application/json',
};
}