Latest 0.3.0
Homepage https://github.com/launchpad-project/api.swift
License MIT
Platforms ios 8.0
Dependencies later, Socket.IO-Client-Swift
Authors

Build Status

Connect to your API

pod 'Launchpad'
import Launchpad

Read and Write Data

Launchpad
    .url("http://liferay.io/<YOUR-APP>/<YOUR-SERVICE>/items")
    .post([
        "title": "Star Wars IV",
        "year": 1977
    ])
    .then { response in
        print("Data saved")
    }
.done()
Launchpad
    .url("http://liferay.io/<YOUR-APP>/<YOUR-SERVICE>/items")
    .get()
    .then { response in
        let movies = response.body as? [String: AnyObject]
        print(movies)
    }
.done()
Launchpad
    .url("http://liferay.io/app/service/movies")
    .filter("year", ">", 2000)
    .sort("rating")
    .limit(2)
    .offset(1)
    .get()
    .then { response in
        let movies = response.body as? [String: AnyObject]
        print(movies)
    }
.done()

Latest podspec

{
    "name": "Launchpad",
    "version": "0.3.0",
    "summary": "Swift API Client for Launchpad Project.",
    "homepage": "https://github.com/launchpad-project/api.swift",
    "license": "MIT",
    "authors": {
        "Bruno Farache": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/launchpad-project/api.swift.git",
        "tag": "0.3.0"
    },
    "source_files": "Source/**/*.swift",
    "dependencies": {
        "later": [
            "= 0.1.0"
        ],
        "Socket.IO-Client-Swift": [
            "= 4.1.6"
        ]
    }
}

Pin It on Pinterest

Share This