MCPcopy Create free account

hub / github.com/akihitohyh/chatgpt-register-sub2api / functions

Functions126 in github.com/akihitohyh/chatgpt-register-sub2api

↓ 1 callersFunctionrun_refresh_tokens
Refresh access tokens and enrich with workspace info from check API. After joining a workspace, refreshing the token ensures the token is val
chatgpt_register_sub2api/pipeline.py:251
↓ 1 callersMethodwait_for_code
Scan recent N messages for verification code, not just the latest.
chatgpt_register_sub2api/register/mail_provider.py:648
Method__init__
(self, device_id: str, ua: str)
chatgpt_register_sub2api/utils/sentinel.py:27
Method__init__
(self, flaresolverr_url: str, timeout_ms: int = 60000)
chatgpt_register_sub2api/utils/proxy.py:71
Method__init__
( self, proxy: str = "", flaresolverr_url: str = "", mail_config: dict | None
chatgpt_register_sub2api/register/registrar.py:154
Method__init__
(self, entry: dict, conf: dict)
chatgpt_register_sub2api/register/mail_provider.py:326
Method_decode
(value: str | None)
chatgpt_register_sub2api/register/mail_provider.py:590
Method_do
()
chatgpt_register_sub2api/register/registrar.py:251
Method_do_simple
()
chatgpt_register_sub2api/register/registrar.py:332
Function_now
()
chatgpt_register_sub2api/pipeline.py:32
Functioncloudflare_retry_pattern
Standard Cloudflare retry pattern used by all registration steps. 1. Make the request 2. If Cloudflare challenge detected, refresh clearance
chatgpt_register_sub2api/register/session.py:136
Functioncmd_export
Export to sub2api JSON.
chatgpt_register_sub2api/cli.py:146
Functioncmd_init
Write default config.yaml.
chatgpt_register_sub2api/cli.py:65
Functioncmd_join_workspace
Join registered accounts to K12 workspace.
chatgpt_register_sub2api/cli.py:98
Functioncmd_login_team
Re-login with Team space selection.
chatgpt_register_sub2api/cli.py:124
Functioncmd_register
Register N ChatGPT accounts.
chatgpt_register_sub2api/cli.py:77
Functioncmd_run
Run the full pipeline.
chatgpt_register_sub2api/cli.py:171
Functioncommon_headers
Standard JSON API request headers (no referer, no oai-device-id).
chatgpt_register_sub2api/register/headers.py:56
Methodcreate_mailbox
(self, username: str | None = None)
chatgpt_register_sub2api/register/mail_provider.py:289
Functioncreate_session
Create a curl_cffi requests.Session with proxy and TLS impersonation.
chatgpt_register_sub2api/utils/proxy.py:162
Functionexport_single_account_json
Export a single account as a CPA-style JSON (for debugging).
chatgpt_register_sub2api/export/sub2api.py:190
Methodfetch_latest_message
(self, mailbox: dict[str, Any])
chatgpt_register_sub2api/register/mail_provider.py:644
Functionget_output_dir
Determine the output directory for data files. Priority: CLI arg > config _config_dir > cwd
chatgpt_register_sub2api/config.py:105
Functionre_login_personal
Re-login without workspace selection (gets personal-scope tokens). This is useful for refreshing tokens when workspace selection is not neede
chatgpt_register_sub2api/login/login_flow.py:486
Functionregister_worker
Single registration worker. Returns {ok: bool, index, result|error}.
chatgpt_register_sub2api/register/registrar.py:535
Methodwait_for_code
(self, mailbox: dict[str, Any])
chatgpt_register_sub2api/register/mail_provider.py:292
← previous101–126 of 126, ranked by callers