| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # Test video-creation skills connectivity
- # 1. Test kuaizi-video-library (list)
- Write-Host "=== Test kuaizi-video-library (list) ===" -ForegroundColor Cyan
- $body1 = @{
- id = "sWvRr8RvPT"
- _ApplicationId = "ncloudmaster"
- action = "list"
- page = 1
- pageSize = 3
- } | ConvertTo-Json -Compress
- try {
- $r1 = Invoke-RestMethod -Uri "https://server.fmode.cn/api/functions" -Method POST -ContentType "application/json" -Body $body1 -TimeoutSec 15
- Write-Host "Response:" -ForegroundColor Green
- $r1 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
- Write-Host ""
- # 2. Test kuaizi-video-query (with a dummy taskId)
- Write-Host "=== Test kuaizi-video-query ===" -ForegroundColor Cyan
- $body2 = @{
- id = "sWvRr8RvPT"
- _ApplicationId = "ncloudmaster"
- action = "query"
- taskId = "test123"
- } | ConvertTo-Json -Compress
- try {
- $r2 = Invoke-RestMethod -Uri "https://server.fmode.cn/api/functions" -Method POST -ContentType "application/json" -Body $body2 -TimeoutSec 15
- Write-Host "Response:" -ForegroundColor Green
- $r2 | ConvertTo-Json -Depth 5
- } catch {
- Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
- }
- Write-Host ""
- # 3. Test kuaizi-video-create relay endpoint (dry ping, no real materials)
- Write-Host "=== Test kuaizi-video-create relay endpoint ===" -ForegroundColor Cyan
- $body3 = @{
- action = "ping"
- } | ConvertTo-Json -Compress
- try {
- $r3 = Invoke-RestMethod -Uri "https://server.fmode.cn/api/functions/cut/onemerge" -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
- }
|