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

API method list, Parameter, Description, Value, Version, Status, JSON Format Content

Page 28 highlights

Send Transactions Using WebAPI API method list Surveillance Station provides four methods to handle the transaction transmission. Insert This method is used to insert a complete transaction into Surveillance Station. • Request Parameter dsName deviceName content format timestamp account password Description Optional.The name of the CMS recording server which the transaction device is on. The name of the transaction device added in Surveillance Station. The content of the whole transaction. The format of the content. "json" indicates the content is of JSON format. "string" indicates the content is pure text. 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. Optional. The login account name for NAS. Optional. Password of the account. Value , i.e. "NVR_1F" , i.e. "Device01" , i.e. "1234" , i.e. "string" , i.e. 1508989055 , i.e. "Manager" , i.e. "000000" • Example: Version 2 and above 2 and above 2 and above 2 and above 2 and above 2 and above 2 and above http://192.168.2.3:5000/WebAPI/entry.cgi?api=SYNO.SurveillanceStation.Transactions.Transact ion&method="Insert"&version=2&deviceName="POS01"&content="1234"&format="string" • 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. 27

  • 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

27
Send Transactions Using WebAPI
API method list
Surveillance Station provides four methods to handle the transaction transmission.
Insert
This method is used to insert a complete transaction into Surveillance Station.
• 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
content
The content of the whole
transaction.
<string>, i.e. "1234"
2 and above
format
The format of the content.
"json" indicates the content
is of JSON format. "string"
indicates the content is pure
text.
<string>,
i.e. "string"
2 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
• Example:
ion&method="Insert"&version=2&deviceName="POS01"&content="1234"&format="string"
• 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.