SPB Git

Repository Public BSD-3-Clause

list-app-ids.js 2.5 KB 50 lines javascript

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : ORIX Maps8 * File             : scripts/portal/list-app-ids.js9 * Module           : scripts10 * Repository       : https://git.spboucher.ai/orix-maps11 * Created          : 2026-11-2512 * Last Modified    : 2026-11-2513 *14 * Author           : Simon-Pierre Boucher15 * Position         : Professor of Finance16 * Institution      : Université du Québec en Outaouais (UQO)17 * Organization     : SP Boucher18 * Website          : https://spboucher.ai19 * Git              : https://git.spboucher.ai20 *21 * Preferred Contact: support@spboucher.ai22 * Development      : dev@spboucher.ai23 * Support          : support@spboucher.ai24 * Security/Admin   : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License          : Proprietary, all rights reserved (see license file)33 * License File     : LICENSE34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243async function main(){44  const r = await fetch('/services-account/v1/bundleIds',{method:'POST',credentials:'include',headers:{'Content-Type':'application/vnd.api+json','Accept':'application/vnd.api+json, application/json, text/plain, */*','X-HTTP-Method-Override':'GET','X-Requested-With':'XMLHttpRequest'},body:JSON.stringify({urlEncodedQueryParams:'limit=1000&sort=name&filter[platform]=IOS,MACOS',teamId:'3YM54G49SN'})});45  const t = await r.text();46  let out = 'status '+r.status+' csrf '+(r.headers.get('csrf')?'yes':'no')+' ';47  try { const j = JSON.parse(t); const rows = j.data.map(d=>d.attributes.identifier+'|'+d.attributes.name+'|'+d.attributes.bundleType+'|'+d.id).filter(s=>/orix|maps/i.test(s)); out += 'total '+j.data.length+' '+JSON.stringify(rows); const a=j.data.find(d=>/orix\.arcade/.test(d.attributes.identifier)); if(a) out += ' SAMPLE '+JSON.stringify(a.attributes).slice(0,500); } catch(e){ out += t.slice(0,300); }48  return out;49}50
Files main
Menu

Theme