| 123456789101112131415161718192021222324252627282930313233343536 |
- # Query CloudFunction class to find actual function names
- $headers = @{ "X-Parse-Application-Id" = "ncloudmaster" }
- # Try to get the CloudFunction record by objectId
- Write-Host "=== CloudFunction t012qy4XVe ===" -ForegroundColor Cyan
- try {
- $r = Invoke-RestMethod -Uri "https://server.fmode.cn/parse/classes/CloudFunction/t012qy4XVe" -Method GET -Headers $headers -TimeoutSec 10
- Write-Host ($r | ConvertTo-Json -Depth 5) -ForegroundColor Green
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
- Write-Host ""
- Write-Host "=== CloudFunction H7X7y9Wfc0 ===" -ForegroundColor Cyan
- try {
- $r2 = Invoke-RestMethod -Uri "https://server.fmode.cn/parse/classes/CloudFunction/H7X7y9Wfc0" -Method GET -Headers $headers -TimeoutSec 10
- Write-Host ($r2 | ConvertTo-Json -Depth 5) -ForegroundColor Green
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
- Write-Host ""
- # Also try FunctionDeploy or other class names
- foreach ($cls in @("FunctionDeploy", "ServerFunction", "ParseFunction", "Function")) {
- Write-Host "=== $cls/t012qy4XVe ===" -ForegroundColor Cyan
- try {
- $r3 = Invoke-RestMethod -Uri "https://server.fmode.cn/parse/classes/$cls/t012qy4XVe" -Method GET -Headers $headers -TimeoutSec 5
- Write-Host ($r3 | ConvertTo-Json -Depth 3) -ForegroundColor Green
- } catch {
- $code = ""
- if ($_.Exception.Response) { $code = [int]$_.Exception.Response.StatusCode }
- Write-Host "$code" -ForegroundColor Yellow
- }
- }
|