TypeScript
FutPicks uses OpenAPI as the SDK contract. Generate clients from the public schema or from the checked-in docs schema.
npx @openapitools/openapi-generator-cli generate \ -i https://futpicks.com/api/v1/openapi/v1.json \ -g typescript-fetch \ -o ./clients/typescript/generatednpx @openapitools/openapi-generator-cli generate \ -i docs-site/schemas/api.json \ -g typescript-fetch \ -o ./clients/typescript/generatedMinimal wrapper
Section titled “Minimal wrapper”export function futPicksHeaders(token: string): HeadersInit { return { Authorization: `Bearer ${token}`, Accept: 'application/json', };}