Synology DS418 Transactions in Surveillance Station 8.1.0 and above - Page 27
Send Transactions Using WebAPI, Authentication, API format
View all Synology DS418 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 27 highlights
Send Transactions Using WebAPI Send Transactions Using WebAPI You can transmit transaction data from transaction devices added in Surveillance Station using Surveillance Station WebAPI, the WebAPI provided by Surveillance Station. In this chapter, we will provide detailed instructions on how to use Surveillance Station WebAPI to transmit data. Note: If you wish to connect with the transaction device on the recording server, please send WebAPI directly to the recording server instead of the host server. Authentication Authentication is required before using any WebAPI provided by Synology. For more information on the login process, please refer to 2.1.2 Operation flow and 2.3.2 SYNO.API. Auth in this document. For API methods related to sending transactions, you can specify account and password as parameters to log in to NAS directly. API format Synology WebAPI requests are implemented based on HTTP format. All the transaction operations are defined under the WebAPI, SYNO.SurveillanceStation.Transactions. Transaction. Therefore, the basic request format is as follows: http//{ip}:{port}/WebAPI/entry.cgi?api=SYNO.SurveillanceStation.Transactions.Transaction&me thod=&version=[&] Tag Description Method of API Version of API Parameter list for the method of API An example for canceling a transaction: http://192.168.2.3:5000/WebAPI/entry.cgi?api=SYNO.SurveillanceStation.Transactions.Transact ion&method=Cancel&version=2&deviceName=POS01&sessionId=1 26