Update README (implemented methods), add more getters
This commit is contained in:
35
examples/response/GetDSTInfo.json
Normal file
35
examples/response/GetDSTInfo.json
Normal file
@@ -0,0 +1,35 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetTime",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Dst": {
|
||||
"enable": 1,
|
||||
"endHour": 2,
|
||||
"endMin": 0,
|
||||
"endMon": 11,
|
||||
"endSec": 0,
|
||||
"endWeek": 1,
|
||||
"endWeekday": 0,
|
||||
"offset": 1,
|
||||
"startHour": 2,
|
||||
"startMin": 0,
|
||||
"startMon": 3,
|
||||
"startSec": 0,
|
||||
"startWeek": 1,
|
||||
"startWeekday": 0
|
||||
},
|
||||
"Time": {
|
||||
"day": 27,
|
||||
"hour": 18,
|
||||
"hourFmt": 0,
|
||||
"min": 50,
|
||||
"mon": 10,
|
||||
"sec": 46,
|
||||
"timeFmt": "MM/DD/YYYY",
|
||||
"timeZone": 21600,
|
||||
"year": 2020
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
42
examples/response/GetNetworkAdvanced.json
Normal file
42
examples/response/GetNetworkAdvanced.json
Normal file
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetNetPort",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"NetPort": {
|
||||
"httpPort": 80,
|
||||
"httpsPort": 443,
|
||||
"mediaPort": 9000,
|
||||
"onvifPort": 8000,
|
||||
"rtmpPort": 1935,
|
||||
"rtspPort": 554
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"NetPort": {
|
||||
"httpPort": { "max": 65535, "min": 1 },
|
||||
"httpsPort": { "max": 65535, "min": 1 },
|
||||
"mediaPort": { "max": 65535, "min": 1 },
|
||||
"onvifPort": { "max": 65535, "min": 1 },
|
||||
"rtmpPort": { "max": 65535, "min": 1 },
|
||||
"rtspPort": { "max": 65535, "min": 1 }
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"NetPort": {
|
||||
"httpPort": 80,
|
||||
"httpsPort": 443,
|
||||
"mediaPort": 9000,
|
||||
"onvifPort": 8000,
|
||||
"rtmpPort": 1935,
|
||||
"rtspPort": 554
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "cmd": "GetUpnp", "code": 0, "value": { "Upnp": { "enable": 0 } } },
|
||||
{
|
||||
"cmd": "GetP2p",
|
||||
"code": 0,
|
||||
"value": { "P2p": { "enable": 0, "uid": "99999999999999" } }
|
||||
}
|
||||
]
|
||||
15
examples/response/GetNetworkDDNS.json
Normal file
15
examples/response/GetNetworkDDNS.json
Normal file
@@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetDdns",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Ddns": {
|
||||
"domain": "",
|
||||
"enable": 0,
|
||||
"password": "",
|
||||
"type": "no-ip",
|
||||
"userName": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
25
examples/response/GetNetworkEmail.json
Normal file
25
examples/response/GetNetworkEmail.json
Normal file
@@ -0,0 +1,25 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetEmail",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Email": {
|
||||
"addr1": "",
|
||||
"addr2": "",
|
||||
"addr3": "",
|
||||
"attachment": "picture",
|
||||
"interval": "5 Minutes",
|
||||
"nickName": "",
|
||||
"password": "",
|
||||
"schedule": {
|
||||
"enable": 1,
|
||||
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
},
|
||||
"smtpPort": 465,
|
||||
"smtpServer": "smtp.gmail.com",
|
||||
"ssl": 1,
|
||||
"userName": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
24
examples/response/GetNetworkFtp.json
Normal file
24
examples/response/GetNetworkFtp.json
Normal file
@@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetFtp",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Ftp": {
|
||||
"anonymous": 0,
|
||||
"interval": 30,
|
||||
"maxSize": 100,
|
||||
"mode": 0,
|
||||
"password": "",
|
||||
"port": 21,
|
||||
"remoteDir": "",
|
||||
"schedule": {
|
||||
"enable": 1,
|
||||
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
},
|
||||
"server": "",
|
||||
"streamType": 0,
|
||||
"userName": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
19
examples/response/GetNetworkGeneral.json
Normal file
19
examples/response/GetNetworkGeneral.json
Normal file
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetLocalLink",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"LocalLink": {
|
||||
"activeLink": "LAN",
|
||||
"dns": { "auto": 1, "dns1": "192.168.255.4", "dns2": "192.168.255.4" },
|
||||
"mac": "EC:71:DB:AA:59:CF",
|
||||
"static": {
|
||||
"gateway": "192.168.255.1",
|
||||
"ip": "192.168.255.58",
|
||||
"mask": "255.255.255.0"
|
||||
},
|
||||
"type": "DHCP"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
14
examples/response/GetNetworkNTP.json
Normal file
14
examples/response/GetNetworkNTP.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetNtp",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Ntp": {
|
||||
"enable": 1,
|
||||
"interval": 1440,
|
||||
"port": 123,
|
||||
"server": "ntp.moos.xyz"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
14
examples/response/GetNetworkPush.json
Normal file
14
examples/response/GetNetworkPush.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetPush",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Push": {
|
||||
"schedule": {
|
||||
"enable": 1,
|
||||
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user