DSMKit 0.1.1

DSMKit 0.1.1

Changbeom Ahn 维护。



DSMKit 0.1.1

  • Changbeom Ahn

DSMKit

Swift 语言的 Synology DSM APIs 库

CI Status Version License Platform

用法

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 目录中运行 pod install

要求

Swift 4

安装

DSMKit 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod 'DSMKit'

待办

  • 支持更多API
  • 将Pod分割成子规范
  • ...

作者

Changbeom Ahn, [email protected]

灵感

http://kwent.github.io/syno

许可

DSMKit遵循MIT许可协议。更多信息请参阅LICENSE文件。