Synology DS418 Transactions in Surveillance Station 8.1.0 and above - Page 30

Parameter, Description, Value, Version, Status, JSON Format Content, ERROR CODE

Page 30 highlights

AppendData This method is used to carry data into the session with the ID specified in sessionId. • Request: Parameter dsName deviceName sessionId content timestamp account password Description Optional. The name of the CMS recording server which the transaction device is on. Value , i.e. "NVR_1F" The name of the transaction device added in Surveillance Station. , i.e. "Device01" ID of a session. , i.e. "1234" The transaction content. The contents sent by one request would be regard as one line. Users can also carry "\n" in the contents to break lines. , i.e. "Start\ n2017/01/01" Optional. The number of seconds that have elapsed from 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970 to the occurrence time of the transaction. , i.e. 1508989055 Optional. The login account name for NAS. , i.e. "Manager" Optional. Password of the account. , i.e. "000000" Version 2 and above 2 and above 2 and above 1 and above 2 and above 2 and above 2 and above • Response: Status Success Failed JSON Format Content {"success":true} {"error":{"code":},"success":false} Please refer to API Error Code for more information about the error codes.API Error Code Send Transactions Using WebAPI 29

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

29
Send Transactions Using WebAPI
AppendData
This method is used to carry data into the session with the ID specified in sessionId.
• Request:
Parameter
Description
Value
Version
dsName
Optional
. The name of the CMS
recording server which the
transaction device is on.
<string>, i.e.
"NVR_1F"
2 and above
deviceName
The name of the transaction
device added in Surveillance
Station.
<string>, i.e.
"Device01"
2 and above
sessionId
ID of a session.
<string>, i.e. "1234"
2 and above
content
The transaction content. The
contents sent by one request
would be regard as one line.
Users can also carry "\n" in the
contents to break lines.
<string>,
i.e. "Start\
n2017/01/01"
1 and above
timestamp
Optional
. The number of seconds
that have elapsed from 00:00:00
Coordinated Universal Time
(UTC), Thursday, 1 January 1970
to the occurrence time of the
transaction.
<integer>,
i.e. 1508989055
2 and above
account
Optional
. The login account
name for NAS.
<string>,
i.e. "Manager"
2 and above
password
Optional
. Password of the
account.
<string>,
i.e. "000000"
2 and above
• Response:
Status
JSON Format Content
Success
{"success":true}
Failed
{"error":{"code":<
ERROR CODE
>},"success":false}
Please refer to
API Error Code
for more information about the error codes.API Error Code