Latest 1.2.0
Homepage https://github.com/JanGorman/Bling
License MIT
Platforms ios 10.0
Authors

Bling 💰

Build Status
codecov
Version
License
Platform
Carthage compatible

An Open Exchange Rates API wrapper written in Swift

Requirements

  • Swift 4.2
  • iOS 10.0+
  • Xcode 9+

Install

Bling is available on Cocoapods. Add it to your Podfile and run pod install:

pod 'Bling'

Usage

To use Bling you need to create a new instance and pass it your app id:

let bling = Bling(appId: "…")
bling.latest { response in
  switch response {
  case .success(let latest):
    print(latest.rates)
  case .failure(let error):
    // 😵
  }
}

Tests

Bling uses Hippolyte for stubbing network requests so if you’d like to run the tests yourself, after checking out the repository, run git submodule init to fetch the dependency.

License

Hippolyte is released under the MIT license. See LICENSE for details

Latest podspec

{
    "name": "Bling",
    "version": "1.2.0",
    "summary": "Open Exchange Rates API wrapper written in Swift",
    "description": "Access the Open Exchange Rates API in Swift. Provides easy access to all API calles listed in https://docs.openexchangerates.org",
    "homepage": "https://github.com/JanGorman/Bling",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jan Gorman": "[email protected]"
    },
    "social_media_url": "http://twitter.com/JanGorman",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/JanGorman/Bling.git",
        "tag": "1.2.0"
    },
    "source_files": [
        "Classes",
        "Bling/*.swift"
    ]
}

Pin It on Pinterest

Share This