n/aiu/Foch0x97 · 4개월 전
회원가입 로그인
n/ai · 4개월 전 · 편집됨 · 조회 657회
u/Foch0x97골드

[7.5 14:30] 可用K12 team自动拉取

outlook

这部分内容登录后可见

gmail

这部分内容登录后可见

拉取脚本
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/7bf3a2ce-3298-40b0-ac9b-3c922a5a91a6/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);
});

6
11
로그인하고 토론에 참여하세요.

답글 11개

정렬
  1. chenshui 골드 4개월 전

    这东西不是整半天 然后一会就没了吗

    0
  2. CyanYuki 실버 4개월 전

    哪用整半天,脚本 1 分钟整 3 个号,codex 够用了

    1
  3. le_vo 골드 4개월 전

    thanks

    0
  4. Smesut 골드 4개월 전

    谢谢

    0
  5. na_lu 골드 4개월 전

    感谢提供

    0
  6. kun_tao 실버 4개월 전

    重复弄,重复停用,重复封,有能用时间长的吗

    0
  7. youtoo1028 실버 4개월 전

    大佬牛逼

    0
  8. StevenYoung 실버 4개월 전

    不能sub2api吗

    0
  9. bluenight 실버 4개월 전

    谢谢

    0
  10. macna40 실버 4개월 전

    感谢老板!

    0
  11. zhojin 골드 4개월 전

    gpt自由!

    0