| 123456789101112131415161718 |
- /**
- * 查询所有 APIG 记录,找出每条 api 路径对应的 apigId
- */
- (async () => {
- const url = 'https://server.fmode.cn/parse/classes/APIG?limit=200&keys=objectId,title,path,count,cost,price,service,company';
- const r = await fetch(url, { headers: { 'X-Parse-Application-Id': 'ncloudmaster' } });
- const d = await r.json();
- console.log('全部 APIG 记录:');
- console.log('='.repeat(120));
- (d.results || []).forEach(x => {
- const c = typeof x.company === 'object' ? x.company?.objectId : x.company;
- console.log(` ${String(x.objectId).padEnd(12)} ${String(x.title||'').padEnd(25)} ${String(x.path||'').padEnd(40)} service=${x.service||'-'} company=${c||'-'}`);
- });
- console.log('');
- console.log(`共 ${(d.results||[]).length} 条记录`);
- })().catch(e => console.error('Error:', e.message));
|