회원가입 로그인
n/tools · 5개월 전 · 편집됨 · 조회 3078회
u/MuXu_YI골드3년
n/toolsu/MuXu_YI 3년 · 5개월 전

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
로그인하고 토론에 참여하세요.

답글 65개

정렬
  1. Foch0x97 골드 5개월 전 #2

    Done,感谢分享

    1
  2. MuXu_YI 골드 글쓴이 3년 5개월 전 #3

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

    0
  3. yeluo 실버 5개월 전 #4

    佬 登codex能绕过接码吗

    0
  4. na_lu 골드 5개월 전 #5

    需要重新登录账号么

    0
  5. MuXu_YI 골드 글쓴이 3년 5개월 전 #6
    답글 @yeluo: 佬 登codex能绕过接码吗

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

    0
  6. MuXu_YI 골드 글쓴이 3년 5개월 전 #7
    답글 @na_lu: 需要重新登录账号么

    不需要,刷新一下就行了

    0
  7. zatxm120 실버 5개월 전 #8

    感谢大佬

    0
  8. geepark 실버 5개월 전 #9

    It works guys try out

    0
  9. ll_dong 골드 3년 5개월 전 #10

    大佬牛,已经成功了

    0
  10. Yuxiaojie 골드 5개월 전 #11

    = =真不错

    0
  11. ashengwanAI 골드 5개월 전 #12
    답글 @Foch0x97: Done,感谢分享

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

    1
  12. yeluo 실버 5개월 전 #13
    답글 @MuXu_YI: 不能,目前只能RT使用,不影响使用,sub2 cpa格式转换。

    佬 rt怎么获取呢

    0
  13. Foch0x97 골드 5개월 전 #14
    답글 @ashengwanAI: 佬,用自己的gmail会被封号吗?

    不清楚,最好别用大号

    1
  14. ashengwanAI 골드 5개월 전 #15
    답글 @Foch0x97: 不清楚,最好别用大号

    好的

    1
  15. yeluo 실버 5개월 전 #16
    답글 @yeluo: 佬 rt怎么获取呢

    看到了 感谢佬

    0
  16. duongdang941 실버 5개월 전 #17

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

    0
  17. 1751140932 골드 5개월 전 #18

    牛逼,佬!

    0
  18. nikka8964 실버 5개월 전 #19

    感谢佬

    0
  19. account_not_defined 실버 5개월 전 #20

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

    0
  20. kun_tao 실버 5개월 전 #21

    谢谢大佬分享

    0
  21. Struhaqi 골드 5개월 전 #22

    这个是?能干些什么

    0
  22. MuXu_YI 골드 글쓴이 3년 5개월 전 #23
    답글 @account_not_defined: 必须使用Gmail邮箱注册的gpt才可以吗? 还是说其他邮箱都行?

    必须gmail.com后缀

    0
  23. CoolMan 다이아몬드 3년 5개월 전 #24

    加入

    0
  24. qinyu521 실버 5개월 전 #25

    只能说大佬牛逼

    0
  25. AsaYong 실버 5개월 전 #26

    感谢佬!it worked

    0
  26. na_lu 골드 5개월 전 #27

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

    0
  27. lij1122 골드 3년 5개월 전 #28

    感谢

    0
  28. BigWai 실버 5개월 전 #29

    牛逼大佬

    0
  29. Jewel_Pfeiffer 골드 3년 5개월 전 #30

    谷歌授权登陆可以成功

    0