Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
/ BingAPIiOS Public archive

a simple iOS library for accessing the Bing/Azure API

License

Notifications You must be signed in to change notification settings

Adorkable/BingAPIiOS

Repository files navigation

BingAPI

Build Status codecov.io Pod Platform Pod License Pod Version

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!