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