Swift library for Synology DSM APIs
import DSMKit
let dsm = DSM(host: "<IP address or hostname>")
dsm.get(API.Auth.login(account: "<account>", password: "<password>")) { sessionId, error in
// ...
}
...
dsm.get(FileStation.List.list(path: "<path>") { data, error in
// data?.files[0].name
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
Swift 4+
.package(url: "https://github.com/kewlbear/DSMKit.git", from: "0.0.1")
DSMKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DSMKit'
Changbeom Ahn, [email protected]
DSMKit is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 6 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics