n/chit-chatu/jkye-is-boyCGnewboy · 4 tháng trước
Đăng ký Đăng nhập
n/chit-chat · 4 tháng trước · Đã sửa · 895 lượt xem
u/jkye-is-boyCGnewboyVàng

K12 team自动拉取(gmail后缀)已经更换 大佬提供ID

已经更换 大佬提供ID ff598c4d-ccaf-40c1-bfaa-cb94565764b1

https://www.nodeloc.com/t/topic/97549?sort=top

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/ff598c4d-ccaf-40c1-bfaa-cb94565764b1/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);
  });
4
10
Đăng nhập để tham gia thảo luận.

10 phản hồi

Sắp xếp
  1. BearPaw Vương giả 4 tháng trước

    感谢分享,请编辑一下

    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);
      });
    
    2
  2. yifang Vàng 4 tháng trước

    可以的 :xhj003:

    2
  3. Muqtada Vàng 3 tháng trước

    HI
    this oen donet wrok now
    it was wwwroing last week
    do u know why or how to fix ?

    0
  4. James 💯 Huyền thoại QUẢN LÝ 3 tháng trước

    别人的都 早就死了,你的坚持了这么久不错了。。。

    0
  5. Muqtada Vàng 3 tháng trước

    lol it was woking for me and i anvited alot alot of people to my work place
    but today it doesnt working

    0
  6. gugugaga Vàng 3 NĂM 4 tháng trước

    香晕了

    0
  7. gzj000p Vàng 3 NĂM 4 tháng trước

    感谢

    0
  8. kevin666 Vàng 4 tháng trước

    感谢分享,帮顶。

    0
  9. vip05 Vàng 3 năm 4 tháng trước

    试了好几个都成功,但是好像只能加入一个K12空间

    0
  10. kevin666 Vàng 4 tháng trước

    收藏了,谢谢分享!

    0