BingAPI a simple iOS library for accessing the Bing/Azure API.
Current Support:
- Search
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.
Once you've installed the library
- Create an instance of the
Bing
object by providing it your Account Key
var bing = Bing("asdfasdfasdfasdfasdf")
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
...
}
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!