Manage streams

List your streams:

curl -X GET -H 'Authorization: Bearer <TOKEN>' https://console.videocoin.network/api/v1/streams
{
"items": [
{
"id": "005fec0a-6637-479e-46b8-2820b6daf1fa",
"name": "live",
"output_url": "https://streams.videocoin.network/005fec0a-6637-479e-46b8-2820b6daf1fa/index.m3u8",
"stream_contract_id": "3716579677242232723",
"stream_contract_address": "",
"status": "STREAM_STATUS_NEW",
"input_status": "INPUT_STATUS_NONE",
"created_at": "2019-10-31T08:09:21Z",
"updated_at": "2019-10-31T08:09:21Z",
"ready_at": null,
"completed_at": null,
"rtmp_url": "rtmp://rtmp.console.videocoin.network:1935/live/005fec0a-6637-479e-46b8-2820b6daf1fa",
"input_type": "INPUT_TYPE_RTMP",
"output_type": "OUTPUT_TYPE_HLS"
},
{
"id": "2bd9193e-260d-4cee-6d67-08e79260c1ad",
"name": "live home",
"output_url": "https://streams.videocoin.network/2bd9193e-260d-4cee-6d67-08e79260c1ad/index.m3u8",
"stream_contract_id": "5649666304257966074",
"stream_contract_address": "0x50548C45b69A180A982C2b7a66176e9099a382eD",
"status": "STREAM_STATUS_COMPLETED",
"input_status": "INPUT_STATUS_NONE",
"created_at": "2019-10-28T21:18:37Z",
"updated_at": "2019-10-28T21:20:56Z",
"ready_at": "2019-10-28T21:19:32Z",
"completed_at": "2019-10-28T21:20:56Z",
"rtmp_url": "rtmp://rtmp.console.videocoin.network:1935/live/2bd9193e-260d-4cee-6d67-08e79260c1ad",
"input_type": "INPUT_TYPE_RTMP",
"output_type": "OUTPUT_TYPE_HLS"
}
]
}

Query stream info:

curl -X GET -H 'Authorization: Bearer <TOKEN>' https://console.videocoin.network/api/v1/streams/005fec0a-6637-479e-46b8-2820b6daf1fa
{
"id": "005fec0a-6637-479e-46b8-2820b6daf1fa",
"name": "live",
"output_url": "https://streams.videocoin.network/005fec0a-6637-479e-46b8-2820b6daf1fa/index.m3u8",
"stream_contract_id": "3716579677242232723",
"stream_contract_address": "",
"status": "STREAM_STATUS_NEW",
"input_status": "INPUT_STATUS_NONE",
"created_at": "2019-10-31T08:09:21Z",
"updated_at": "2019-10-31T08:09:21Z",
"ready_at": null,
"completed_at": null,
"rtmp_url": "rtmp://rtmp.console.videocoin.network:1935/live/005fec0a-6637-479e-46b8-2820b6daf1fa",
"input_type": "INPUT_TYPE_RTMP",
"output_type": "OUTPUT_TYPE_HLS"
}

Delete stream:

curl -X DELETE -H 'Authorization: Bearer <TOKEN>' https://console.videocoin.network/api/v1/streams/005fec0a-6637-479e-46b8-2820b6daf1fa