Synology DS418 Transactions in Surveillance Station 8.1.0 and above - Page 28
API method list, Parameter, Description, Value, Version, Status, JSON Format Content
View all Synology DS418 manuals
Add to My Manuals
Save this manual to your list of manuals |
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