CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

BingAPI 0.3.0

BingAPI 0.3.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2015
SPMSupports SPM

Maintained by Ian Grossberg.



BingAPI 0.3.0

  • By
  • Ian Grossberg

BingAPI a simple iOS library for accessing the Bing/Azure API.

Current Support:

  • Search

Installation


BingAPI is available through cocoapods, to install simple add the following line to your PodFile:

  pod "BingAPI"

Alternatively you can add the github repo as a submodule and use BingAPI as a framework.

Setup


Once you've installed the library

  • Create an instance of the Bing object by providing it your Account Key
    var bing = Bing("asdfasdfasdfasdfasdf")

Usage

Search

To Search use the search function:

    bing.search("xbox", timeoutInterval: timeoutInterval, resultsHandler: { (results : Array<BingSearchResults>?, error) -> Void in
       ...  
    }

Search Suggest

To get Search Suggestions use the 'searchSuggest' function:

    bing.searchSuggest("xbox", timeoutInterval: timeoutInterval, resultsHandler: { (results : Array<String>?, error) -> Void in
       ...  
    }

Contributing

If you have any ideas, suggestions or bugs to report please create an issue labeled feature or bug (check to see if the issue exists first please!). Or suggest a pull request!