samisharafeddine / SpaceXAPI-Swift

Swift wrapper for SpaceX API from https://github.com/r-spacex/SpaceX-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpaceXAPI-Swift

alt tag

Description

SpaceXAPI-Swift is a wrapper for the original SpaceX API created and maintained by r/SpaceX at https://github.com/r-spacex/SpaceX-API.

Installation

pod 'SpaceXAPI-Swift'

Usage

SpaceXAPI-Swift is very easy to use. Here's an example:

SpaceXAPIClient.shared.getAllCapsules { (capsules, error) in
    guard error == nil else {
      // Handle Error.
      return
    }
    // No error, we have data!
    print(capsules?[0].capsuleID)
}

Coverage

SpaceXAPI-Swift currently covers all endpoints provided by r/SpaceX!

Contribute

Caught a bug? Do you have an issue? New endpoint? Just create an issue and I will happily help ;]

Other

This project is free to use by anyone! But it would be a nice gesture to give some credits, as it shows your support for this project, r/SpaceX, and SpaceX alltogether!

About

Swift wrapper for SpaceX API from https://github.com/r-spacex/SpaceX-API

License:MIT License


Languages

Language:Swift 97.6%Language:Ruby 2.4%