CoindarAPI 1.2.1

CoindarAPI 1.2.1

Aleph Retamal 维护。



  • Aleph Retamal

CoindarAPI

CI Status Version License Platform Swift 5.0

Coindar API 的 Swift 包装器

快速开始

导入 CoindarAPI 并创建一个使用您的令牌的 Coindar 实例。

您可以在这里获取 Coindar 令牌

import CoindarAPI

let api = Coindar(token: "MyCoindarToken")

可用方法

func getEvents(params: EventsParams, onSuccess: ([Event]) -> Void, onError: (Error) -> Void) -> Cancellable

func getCoins(progress: (Double) -> Void, onSuccess: ([Coin]) -> Void, onError: (Error) -> Void) -> Cancellable

func getTags(progress: (Double) -> Void, onSuccess: ([Tag]) -> Void, onError: (Error) -> Void) -> Cancellable

func getSocial(coins: [Coin], onSuccess: ([Social]) -> Void, onError: (Error) -> Void) -> Cancellable

安装

CoindarAPI 可通过 CocoaPodsSwift Package Manager 获得。

Cocoapods

只需将以下行添加到您的 Podfile

pod 'CoindarAPI'

Swift 包管理器

通过 Xcode UI (Xcode 11 及以上版本)

转到 文件 -> Swift 包 -> 添加包依赖... 并输入包仓库 URL https://github.com/alephao/CoindarAPI.git,然后按照说明操作。

不使用 Xcode

只需在 Package.swift 的依赖项下添加以下内容

.package(url: "https://github.com/alephao/CoindarAPI.git", .upToNextMajor(from: "1.0.0"))

然后指定 "CoindarAPI" 为你希望使用 CoindarAPI 的目标的依赖项。

许可

CoindarAPI 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。