Latest 0.1.0
Homepage https://github.com/zhxnlai/YelpAPI
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0, requires ARC
Dependencies Argo, AsyncTask, Curry, OAuthSwift
Authors

YelpAPI

Version
Carthage compatible
License
Platform

Yelp API in Swift

Installation

CocoaPods

YelpAPI is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "YelpAPISwift"

Carthage

Xcode 7.1 required

Add this to Cartfile

github "zhxnlai/YelpAPI" ~> 0.1
$ carthage update

Usage

Resgister as a Yelp developer.

Setup the Yelp client.

Yelp.setupWithConsumerKey(consumerKey:consumerSecret:accessToken:accessTokenSecret:)

Make use of Search API and Business API

let params = SearchParameters(term: "Restaurants")
Business.search(params) {response, error in
    guard error == nil else { print(error) }
    print(response.businesses)
    print(response.total)
}

Business.lookup(biz) {business, error in
    guard error == nil else { print(error) }
    print(business)
}

Author

Zhixuan Lai, [email protected]

License

YelpAPI is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "YelpAPISwift",
    "version": "0.1.0",
    "summary": "Yelp API in Swift.",
    "homepage": "https://github.com/zhxnlai/YelpAPI",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zhixuan Lai": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhxnlai/YelpAPI.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source_files": "Source/Base/*.swift",
    "requires_arc": true,
    "dependencies": {
        "Argo": [
            "~> 3.0.1"
        ],
        "AsyncTask": [
            "~> 0.1.3"
        ],
        "Curry": [
            "~> 2.3.1"
        ],
        "OAuthSwift": [
            "~> 0.5.2"
        ]
    }
}

Pin It on Pinterest

Share This