test-getapig-authid.ps1 459 B

123456789
  1. # Test getApig with real APIGAuth objectId
  2. $body = '{"authid":"T0iOotHcDX"}'
  3. Write-Host "=== getApig with APIGAuth ID T0iOotHcDX ===" -ForegroundColor Cyan
  4. try {
  5. $r = Invoke-RestMethod -Uri "https://server.fmode.cn/api/apig/getApig" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 15
  6. Write-Host ($r | ConvertTo-Json -Depth 5) -ForegroundColor Green
  7. } catch {
  8. Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
  9. }