K12 team自动拉取(gmail后缀)

Ashe 2026-07-02 13:36 1

注册登陆gmail账号,然后consle运行脚本。 见下:


fetch("https://chatgpt.com/api/auth/session", {
method: "GET",
credentials: "include"
})
.then(response => response.json())
.then(sessionData => {
const accessToken = sessionData.accessToken;

if (!accessToken) {
throw new Error("未能获取到 accessToken");
}

console.log("获取到 accessToken,正在发送邀请请求...");

return fetch("https://chatgpt.com/backend-api/accounts/5e4c9b31-1b4e-4887-839b-607597928d7c/invites/request", {
method: "POST",
headers: {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"authorization": `Bearer ${accessToken}`, // ← 这里使用了正确的反引号
"cache-control": "no-cache",
"oai-language": "en-US",
"pragma": "no-cache",
"sec-ch-ua-arch": "\"x86\"",
"sec-ch-ua-bitness": "\"64\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform": "\"macOS\"",
"sec-ch-ua-platform-version": "\"13.5.1\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin"
},
referrer: "https://chatgpt.com/k12-verification",
referrerPolicy: "strict-origin-when-cross-origin",
body: null,
mode: "cors",
credentials: "include"
});
})
.then(response => response.json())
.then(result => {
console.log("邀请请求成功:", result);
})
.catch(error => {
console.error("请求失败:", error);
});

凭证转换服务:https://gtxx3600.github.io/GPTSession2CPAandSub2API/

最新回复 (16)
  • tf2026 07-02 13:41
    1

    牛逼,我试了下可以。

  • hanli 07-02 13:44
    2

    谢谢大佬

  • guohuiqiao 07-02 13:45
    3

    牛B,可以进

  • luan8844a 07-02 13:46
    4

    @Ashe #0 谢谢大善人,加鸡腿

  • 沐初 07-02 13:46
    5

    这是team还是plus?

  • zhu0823 07-02 13:47
    6

    牛逼

  • Ashe 楼主 07-02 13:48
    7

    @沐初 #5 team

  • nodeseeek 07-02 13:49
    8

    牛逼牛逼

  • Japan 07-02 13:50
    9

    怎么用,牛哦比,你已达到限额。请稍后重试。

  • 牛马哥 07-02 13:50
    10

    牛皮

  • Gatezzz 07-02 13:51
    11

    gmail好评

  • 小导演i 07-02 13:57
    12

    牛 ^-^

  • bigwhite 07-02 13:58
    13

    牛的 ^-^

  • 栉风沐雨 07-02 14:04
    14

    K12版,有什么优势吗? 加入了,感谢

  • Starrapids 07-02 14:12
    15

    大佬牛逼

  • qingf 07-02 15:42
    16

    感谢大佬

* 帖子来源NodeSeek
返回