MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / fetchAntigravityUserEmail

Function fetchAntigravityUserEmail

front/common.js:1584–1602  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

1582}
1583
1584async function fetchAntigravityUserEmail(filename) {
1585 try {
1586 showStatus('正在获取用户邮箱...', 'info');
1587 const response = await fetch(`./creds/fetch-email/${encodeURIComponent(filename)}?mode=antigravity`, {
1588 method: 'POST',
1589 headers: getAuthHeaders()
1590 });
1591 const data = await response.json();
1592 if (response.ok && data.user_email) {
1593 showStatus(`成功获取邮箱: ${data.user_email}`, 'success');
1594 // 直接更新卡片中的邮箱显示,不刷新整个列表
1595 updateEmailDisplay(filename, data.user_email, 'antigravity');
1596 } else {
1597 showStatus(data.message || '无法获取用户邮箱', 'error');
1598 }
1599 } catch (error) {
1600 showStatus(`获取邮箱失败: ${error.message}`, 'error');
1601 }
1602}
1603
1604async function verifyProjectId(filename) {
1605 try {

Callers

nothing calls this directly

Calls 3

showStatusFunction · 0.85
getAuthHeadersFunction · 0.85
updateEmailDisplayFunction · 0.85

Tested by

no test coverage detected