Files

1 line
727 B
JSON

{"repo": "agiui/solis", "files": {"src/renderer/components/background/Api2d.js": {"4313a47a26be6b176b81063743f5582ba338cab7": {"t": 1785768944.0428462, "n": 510, "h": "70c26a6380f980a8", "c": "const getPoints = (token) => {\n return fetch('https://openai.api2d.net/dashboard/billing/credit_grants', {\n method: 'POST',\n\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${token}`\n }\n }).then(r => r.json()).then(res => {\n const expireDate = new Date(res.expire_at)\n const points = res.total_available;\n return { expireDate, points }\n }).catch(e => {\n return e\n })\n}\n\nexport default {\n getPoints\n}"}}}}