MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_verification_code

Method get_verification_code

src/services/base.py:79–103  ·  view source on GitHub ↗

获取验证码 Args: email: 邮箱地址 email_id: 邮箱服务中的 ID(如果需要) timeout: 超时时间(秒) pattern: 验证码正则表达式 otp_sent_at: OTP 发送时间戳,用于过滤旧邮件 Returns: 验证码字符串,如果超时或未找到返回 None Raises: EmailServiceError: 服务错误

(
        self,
        email: str,
        email_id: str = None,
        timeout: int = 120,
        pattern: str = r"(?<!\d)(\d{6})(?!\d)",
        otp_sent_at: Optional[float] = None,
    )

Source from the content-addressed store, hash-verified

77
78 @abc.abstractmethod
79 def get_verification_code(
80 self,
81 email: str,
82 email_id: str = None,
83 timeout: int = 120,
84 pattern: str = r"(?<!\d)(\d{6})(?!\d)",
85 otp_sent_at: Optional[float] = None,
86 ) -> Optional[str]:
87 """
88 获取验证码
89
90 Args:
91 email: 邮箱地址
92 email_id: 邮箱服务中的 ID(如果需要)
93 timeout: 超时时间(秒)
94 pattern: 验证码正则表达式
95 otp_sent_at: OTP 发送时间戳,用于过滤旧邮件
96
97 Returns:
98 验证码字符串,如果超时或未找到返回 None
99
100 Raises:
101 EmailServiceError: 服务错误
102 """
103 pass
104
105 @abc.abstractmethod
106 def list_emails(self, **kwargs) -> List[Dict[str, Any]]:

Callers 3

get_account_inbox_codeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected