| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # Query Parse classes directly to find the APIG record
- $appId = "ncloudmaster"
- $headers = @{ "X-Parse-Application-Id" = $appId }
- # 1. Query APIG class for Vo3ROWEvDy
- Write-Host "=== Query APIG class ===" -ForegroundColor Cyan
- try {
- $r1 = Invoke-RestMethod -Uri "https://server.fmode.cn/parse/classes/APIG/Vo3ROWEvDy" -Method GET -Headers $headers -TimeoutSec 15
- Write-Host "APIG record:" -ForegroundColor Green
- $r1 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "APIG not found: $($_.Exception.Message)" -ForegroundColor Yellow
- }
- Write-Host ""
- # 2. Query APIGAuth class for Vo3ROWEvDy
- Write-Host "=== Query APIGAuth class ===" -ForegroundColor Cyan
- try {
- $r2 = Invoke-RestMethod -Uri "https://server.fmode.cn/parse/classes/APIGAuth/Vo3ROWEvDy" -Method GET -Headers $headers -TimeoutSec 15
- Write-Host "APIGAuth record:" -ForegroundColor Green
- $r2 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "APIGAuth not found: $($_.Exception.Message)" -ForegroundColor Yellow
- }
- Write-Host ""
- # 3. Try getApig with different param names
- Write-Host "=== getApig with apigid ===" -ForegroundColor Cyan
- $body3 = @{ apigid = "Vo3ROWEvDy" } | ConvertTo-Json -Compress
- try {
- $r3 = Invoke-RestMethod -Uri "https://server.fmode.cn/api/apig/getApig" -Method POST -ContentType "application/json" -Body $body3 -TimeoutSec 15
- Write-Host "Response:" -ForegroundColor Green
- $r3 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
- Write-Host ""
- # 4. Try getApig with objectId
- Write-Host "=== getApig with objectId ===" -ForegroundColor Cyan
- $body4 = @{ objectId = "Vo3ROWEvDy" } | ConvertTo-Json -Compress
- try {
- $r4 = Invoke-RestMethod -Uri "https://server.fmode.cn/api/apig/getApig" -Method POST -ContentType "application/json" -Body $body4 -TimeoutSec 15
- Write-Host "Response:" -ForegroundColor Green
- $r4 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
|