Kaydol Giriş yap
n/tools · 5 ay önce · Düzenlendi · 3,1 B görüntülenme
u/MuXu_YIAltın3 YIL
n/toolsu/MuXu_YI 3 YIL · 5 ay önce

K12 team自动拉取(gmail后缀)

注册登陆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/

31
65
Giriş yap ve tartışmaya katılın.

65 yanıt

Sıralama
  1. Foch0x97 Altın 5 ay önce #2

    Done,感谢分享

    1
  2. MuXu_YI Altın Konu sahibi 3 YIL 5 ay önce #3

    拿出来卖的吃相难看,所以我发出来了

    0
  3. yeluo Gümüş 5 ay önce #4

    佬 登codex能绕过接码吗

    0
  4. na_lu Altın 5 ay önce #5

    需要重新登录账号么

    0
  5. MuXu_YI Altın Konu sahibi 3 YIL 5 ay önce #6
    Yanıtla @yeluo: 佬 登codex能绕过接码吗

    不能,目前只能RT使用,不影响使用,sub2 cpa格式转换。

    0
  6. MuXu_YI Altın Konu sahibi 3 YIL 5 ay önce #7
    Yanıtla @na_lu: 需要重新登录账号么

    不需要,刷新一下就行了

    0
  7. zatxm120 Gümüş 5 ay önce #8

    感谢大佬

    0
  8. geepark Gümüş 5 ay önce #9

    It works guys try out

    0
  9. ll_dong Altın 3 YIL 5 ay önce #10

    大佬牛,已经成功了

    0
  10. Yuxiaojie Altın 5 ay önce #11

    = =真不错

    0
  11. ashengwanAI Altın 5 ay önce #12
    Yanıtla @Foch0x97: Done,感谢分享

    佬,用自己的gmail会被封号吗?

    1
  12. yeluo Gümüş 5 ay önce #13
    Yanıtla @MuXu_YI: 不能,目前只能RT使用,不影响使用,sub2 cpa格式转换。

    佬 rt怎么获取呢

    0
  13. Foch0x97 Altın 5 ay önce #14
    Yanıtla @ashengwanAI: 佬,用自己的gmail会被封号吗?

    不清楚,最好别用大号

    1
  14. ashengwanAI Altın 5 ay önce #15
    Yanıtla @Foch0x97: 不清楚,最好别用大号

    好的

    1
  15. yeluo Gümüş 5 ay önce #16
    Yanıtla @yeluo: 佬 rt怎么获取呢

    看到了 感谢佬

    0
  16. duongdang941 Gümüş 5 ay önce #17

    Co the chuyen tai khoan Owner sang tai khoan domain. Sau do config bat dang nhap bang SSO duoc khong

    0
  17. 1751140932 Altın 5 ay önce #18

    牛逼,佬!

    0
  18. nikka8964 Gümüş 5 ay önce #19

    感谢佬

    0
  19. account_not_defined Gümüş 5 ay önce #20

    必须使用Gmail邮箱注册的gpt才可以吗? 还是说其他邮箱都行?

    0
  20. kun_tao Gümüş 5 ay önce #21

    谢谢大佬分享

    0
  21. Struhaqi Altın 5 ay önce #22

    这个是?能干些什么

    0
  22. MuXu_YI Altın Konu sahibi 3 YIL 5 ay önce #23
    Yanıtla @account_not_defined: 必须使用Gmail邮箱注册的gpt才可以吗? 还是说其他邮箱都行?

    必须gmail.com后缀

    0
  23. CoolMan Elmas 3 YIL 5 ay önce #24

    加入

    0
  24. qinyu521 Gümüş 5 ay önce #25

    只能说大佬牛逼

    0
  25. AsaYong Gümüş 5 ay önce #26

    感谢佬!it worked

    0
  26. na_lu Altın 5 ay önce #27

    怎么弄到sub呢,添加sub的时候要手机号

    0
  27. lij1122 Altın 3 YIL 5 ay önce #28

    感谢

    0
  28. BigWai Gümüş 5 ay önce #29

    牛逼大佬

    0
  29. Jewel_Pfeiffer Altın 3 YIL 5 ay önce #30

    谷歌授权登陆可以成功

    0