1.0.8 • Published 8 years ago

synology-api v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Synology-NodeJS-API

A NodeJS API to communicate with your Synology NAS

You can :

  • Login and logout to your Synology NAS
  • Communicate with DownloadCenter application (Go to wiki for more information)

Installation

npm install synology-api

Create your Synology Object

var syno = new Syno(
    protocol = "HTTP",
    address = "192.168.0.0",
    port = "5000",
    username = "admin",
    password = "password",
    debug = true);

Now, you can get all tasks from your Synology Nas like that

syno.Auth.Connect().then(function(value) {
    console.log("Your are connected!");

    syno.DS.getTasks().then(function(value) {

        console.log("Success : " + value.Success)

        //Get your tasks
        for(var task in value.Tasks){
            console.log(value.Tasks[task].id)
        }



    }, function(reason) {

        console.log("Error : " + reason.Message)

    })

}, function(reason) {
    console.log("Error : " + reason.Message);

});

And when you do your business, logout :-)

data.Auth.Logout().then(function(data){
      console.log("You're log out")
  },function(reason){
          console.log("You're not log out")  
  });

For documentation go to https://github.com/Clowning/Synology-NodeJS-API/wiki

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago