Latest 1.1.2
Homepage https://github.com/hyerra/OpenAQKit
License MIT
Platforms ios 11.0, osx 10.13, watchos 4.0, tvos 11.0

Open AQ Kit was an SDK written to simplify the process of interacting with OpenAQ. This SDK lets you easily fetch air quality data for more than 60+ countries.

Requirements

  • Swift 4
  • iOS 11.0+
  • macOS 10.13+
  • watchOS 4.0+
  • tvOS 11.0+

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding OpenAQKit as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/hyerra/OpenAQKit.git", from: "1.1.2")
]

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can add it to your project like so:

platform :ios, '11.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'OpenAQKit'
end

Usage

Requests to Open AQ can be requested by using the OpenAQClient class like so:

let client = OpenAQClient.shared

Requests can be made by using any of the public functions within the client to fetch supported cities, supported countries, air quality data, and more.

Communication

  • If you’d like to ask a general question, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Author

Written by Harish Yerra

License

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

Latest podspec

{
    "name": "OpenAQKit",
    "version": "1.1.2",
    "summary": "A well written SDK that allows you to interact with the Open AQ API (http://openaq.org) and obtain air quality data with ease.",
    "description": "Obtain air quality data with ease! This SDK allows you to seemlessly integrate the Open AQ API (http://openaq.org) with your project.",
    "homepage": "https://github.com/hyerra/OpenAQKit",
    "license": "MIT",
    "authors": "Harish Yerra",
    "platforms": {
        "ios": "11.0",
        "osx": "10.13",
        "watchos": "4.0",
        "tvos": "11.0"
    },
    "source": {
        "git": "https://github.com/hyerra/OpenAQKit.git",
        "tag": "1.1.2"
    },
    "source_files": [
        "Sources",
        "Sources/**/*.{h,m}",
        "Sources/OpenAQKit/*.swift",
        "Sources/OpenAQKit/Model/*.swift"
    ],
    "exclude_files": "Sources/Exclude"
}

Pin It on Pinterest

Share This