萤石接口测试情况

## 萤石接口测试情况 #### 海外账号测试 日志 ``` # 获取access_token { "code": "200", "data": { "accessToken": "at.16qnlrdc4hf3uiu114wjtva13ioq0t2a-58for0wptz-1o92m5m-heb88vkaa", "areaDomain": "https://iusopen.ezvizlife.com", "expireTime": 1598001952455 }, "msg": "Operation succeeded" } ``` ``` # 获取设备列表 { "code": "200", "data": [ { "deviceSerial": "E62784233", "deviceName": "C3W(E62784233)", "nickName": null, "deviceType": "CS-CV310-A0-3C2WFRL", "status": 1, "defence": 1, "deviceVersion": "V5.2.7 build 200318", "updateTime": "2020-08-14 07:58:37" } ], "msg": "Operation succeeded", "page": { "page": 0, "size": 10, "total": 1 } } ``` ``` # 查询指定设备信息 { "code": "200", "data": { "deviceSerial": "E62784233", "deviceName": "C3W(E62784233)", "model": "CS-CV310-A0-3C2WFRL", "status": 1, "defence": 1, "isEncrypt": 1, "alarmSoundMode": 0, "offlineNotify": 0, "secondDeviceType": "IPC" }, "msg": "Operation succeeded" } ``` ``` # 获取摄像头列表 { "code": "200", "data": [ { "deviceSerial": "E62784233", "channelNo": 1, "channelName": "C3W(E62784233)", "status": 1, "isShared": "0", "picUrl": "https://www.ezvizlife.com/assets/imgs/public/homeDevice.jpeg", "isEncrypt": 1, "videoLevel": 3, "permission": -1 } ], "msg": "Operation succeeded", "page": { "page": 0, "size": 10, "total": 1 } } ``` ``` # 获取设备状态 { "code": "200", "data": { "privacyStatus": 0, "pirStatus": 0, "alarmSoundMode": 0, "battryStatus": -1, "lockSignal": -1, "diskNum": 0, "diskState": "----------------", "cloudStatus": 2, "nvrDiskNum": -2, "superDiskNum": -2, "nvrDiskState": "-2" }, "msg": "Operation succeeded" } ``` ``` # 获取指定设备通道信息 { "code": "200", "data": [ { "deviceSerial": "E62784233", "ipcSerial": "E62784233", "channelNo": 1, "deviceName": "C3W(E62784233)", "channelName": "C3W(E62784233)", "status": 1, "isShared": "0", "picUrl": "https://www.ezvizlife.com/assets/imgs/public/homeDevice.jpeg", "isEncrypt": 1, "videoLevel": 3, "relatedIpc": true } ], "msg": "Operation succeeded" } ``` ``` # 查询设备能力集 { "code": "200", "data": { "ptz_center_mirror": "1", "ptz_left_right": "0", "ptz_top_bottom": "0", "support_active_defense": "2", "support_alarm_voice": "1", "support_ap_allseries": "1", "support_ap_mode": "2", "support_audio_onoff": "1", "support_auto_offline": "1", "support_capture": "1", "support_change_volume": "1", "support_channel_number": 1, "support_cloud": "1", "support_cloud_version": "1", "support_custom_voice": "1", "support_default_stream_type": "1", "support_defence": "1", "support_defenceplan": "1", "support_device_light": "1", "support_device_sound": "1", "support_device_wired": "1", "support_disk": "1", "support_encrypt": "1", "support_fullday_record": "1", "support_message": "0", "support_modify_pwd": "1", "support_motion_detect_area": "1", "support_new_sound_wave": "0", "support_night_vision_mode": "1", "support_p2p_mode": "1", "support_privacy": "0", "support_ptz": "0", "support_quickplay_way": "1", "support_related_device": "0", "support_remote_auth_randcode": "1", "support_resolution": "16-9", "support_sensibility_adjust": "1", "support_sleep": "1", "support_smart_alexa": "1", "support_smart_googlehome": "1", "support_smart_night_vision": "1", "support_smart_wifi": "1", "support_talk": "3", "support_talk_type": "1", "support_timezone": "1", "support_unbind": "0", "support_upgrade": "1", "support_wifi": "3", "support_wifi_userId": "1", "video_quality_capacity": [ { "streamType": "1", "videoLevel": "1", "resolution": "3", "videoBitRate": "9", "maxBitRate": "0" }, { "streamType": "1", "videoLevel": "2", "resolution": "19", "videoBitRate": "15", "maxBitRate": "0" }, { "streamType": "1", "videoLevel": "3", "resolution": "27", "videoBitRate": "17", "maxBitRate": "0" } ] }, "msg": "Operation succeeded" } ``` ``` # 修改设备名称 { "code": "200", "msg": "Operation succeeded" } ``` ``` # 抓包图片 { "code": "200", "data": { "picUrl": "https://pmsus1.ezvizlife.com:8444/image/pic/1059d6464a5944fe927f0103d0feaa39?c=42285201" }, "msg": "Operation succeeded" } ``` ``` # 设备布防/撤防 { "code": "200", "msg": "Operation succeeded" } { "code": "20006", "msg": "Device network error." } { "code": "20008", "msg": "Device response timeout." } ```