Swiftpack.co - kewlbear/DSMKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kewlbear.
kewlbear/DSMKit 0.1.1
Swift library for Synology DSM APIs
⭐️ 6
🕓 3 years ago
.package(url: "https://github.com/kewlbear/DSMKit.git", from: "0.1.1")

DSMKit

Swift library for Synology DSM APIs

Build Version License

Usage

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
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 4+

Installation

Swift Package Manager

.package(url: "https://github.com/kewlbear/DSMKit.git", from: "0.0.1")

CocoaPods

DSMKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DSMKit'

TODO

  • support more APIs
  • divide pod into sub specs
  • ...

Author

Changbeom Ahn, [email protected]

Inspirations

http://kwent.github.io/syno

License

DSMKit is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 6
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics