How to access your Synology NAS using the API

I am new to sinology. I want to access my Synology NAS. I followed Synology_Download_Station_Official_API .

I read a basic working example to get API information:

Step 1: Obtain API information In order to execute API requests, you must first request SYNO.API.Info to obtain the SYNO.API.Auth API information for entering the session and the SYNO.DownloadStation.Task API information for the list of download tasks .

Request:

http://myds.com/10000/webapi/query.cgi?api=SYNO.API.Info&version=1&my=SYNO.API.Auth,SYNO.DownloadStation.Task

I changed myds.comβ–Ί000 to mydomain.com//456

I created a GET request, but every time my request expires. Am I doing something wrong?

Please guide how I use it for the first time.

+4
source share
1 answer

I think your request may be wrong, but that doesn’t explain why this timeout ...

The correct request should be:

http://myds.com//000/webapi/query.cgi?api=SYNO.API.Info&version=1&method=query&query=SYNO.API.Auth,SYNO.DownloadStation.Task

You can see the correct requests in the Synology documentation at https://global.download.synology.com/download/Document/DeveloperGuide/Synology_Download_Station_Web_API.pdf

+1
source

Source: https://habr.com/ru/post/1478950/


All Articles