cURL
curl --request POST \ --url https://api-new.paineloffice.click/p2p \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "isTrial": true, "notes": "<string>", "packageId": "<string>", "typeUser": 123 } '
{ "success": true, "message": "<string>", "data": { "id": 123, "username": "<string>", "status": "<string>", "max_devices": 123, "expires_at": "<string>", "server_url": "<string>", "streaming_key": "<string>" } }
Cria um teste gratuito P2P no sistema
POST /p2p Authorization: Bearer <token>
isTrial: true
true
5da17892133a1d61888029aa
{ "isTrial": true, "notes": "teste", "packageId": "", "typeUser": 2 }
Show properties
{ "message": "Teste P2P criado com sucesso", "data": { "id": 2001, "username": "teste_p2p_001", "status": "active", "max_devices": 1, "expires_at": "2024-02-15T10:30:00Z", "server_url": "http://p2p.servidor.com:8080", "streaming_key": "p2p_key_abc123def456" } }