技能备份 - 2026-04-15 (40个技能)

This commit is contained in:
root
2026-04-15 18:53:15 +08:00
parent f62f14814f
commit c65fce24e4
791 changed files with 190773 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
const { fetchWithAuth } = require('./utils/feishu-client.js');
async function run() {
const msgId = 'om_x100b5747191850a0b2c501a826f753e';
console.log('Fetching msg:', msgId);
try {
const res = await fetchWithAuth(`https://open.feishu.cn/open-apis/im/v1/messages/${msgId}`, { method: 'GET' });
const data = await res.json();
console.log('Current Msg:', JSON.stringify(data, null, 2));
if (data.data && data.data.items && data.data.items[0].parent_id) {
const parentId = data.data.items[0].parent_id;
console.log('Fetching Parent:', parentId);
const res2 = await fetchWithAuth(`https://open.feishu.cn/open-apis/im/v1/messages/${parentId}`, { method: 'GET' });
const data2 = await res2.json();
console.log('Parent Msg:', JSON.stringify(data2, null, 2));
}
} catch(e) {
console.error(e);
}
}
run();