Latest 1.0.6
Homepage https://github.com/devsamsh/SpaceXAPI-Swift
License MIT
Platforms ios 11.0, requires ARC
Dependencies Alamofire
Authors

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!

Latest podspec

{
    "name": "SpaceXAPI-Swift",
    "platforms": {
        "ios": "11.0"
    },
    "summary": "SpaceXAPI-Swift is a swift wrapper for ApaceX API created by r/SpaceX.",
    "requires_arc": true,
    "version": "1.0.6",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sami Sharafeddine": "[email protected]"
    },
    "homepage": "https://github.com/devsamsh/SpaceXAPI-Swift",
    "source": {
        "git": "https://github.com/devsamsh/SpaceXAPI-Swift.git",
        "tag": "1.0.6"
    },
    "dependencies": {
        "Alamofire": [
            "~> 4.8.1"
        ]
    },
    "source_files": "SpaceXAPI-Swift/**/*.{swift}",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This