登录自己的号,然后console里面,带<>的是自己要改的内容
其他不懂自己百度
fetch("https://chatgpt.com/backend-api/referral/invites/claim/<Invite_code>", {
body: JSON.stringify({ "workspace_id": "<account_id>" }),
"headers": {
"Accept": "*/*",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"Authorization": "Bearer <access_token>",
"Content-Type": "application/json",
"OAI-Language": "en-US",
"User-Agent": "<UA>"
},
"method": "POST",
"mode": "cors",
"redirect": "follow",
"referrer": "https://chatgpt.com/",
"referrerPolicy": "strict-origin-when-cross-origin"
})
account_id的获取:
搜索accounts接口获取返回结果的account_ordering里面的第一个数据