Gitty API Client for JavaScript
npx jsr add @evex/gitty-api-js
deno add jsr:@evex/gitty-api-jsYou need to extract cookies. (/sb-[a-z]+-auth-token\.[\d]/ is important.)
import { createClient } from "@evex/gitty-api-js";
const cookies = "sb-xxxxxxxx-auth-token.0=...; sb-xxxxxxxx-auth-token.1=...; ...";
const client = createClient(cookies);
const response = await client.user.getUserScoreAndRepo({
"json": {
"githubId": "EdamAme-x",
},
}, "POST");
const data = await response.json();
console.log(data);From here, you can see the operation name and input.