PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of dan boorn   Bing Search   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Bing Search
Search for Web content using the Bing API
Author: By
Last change: Update of example.php
Date: 5 months ago
Size: 989 bytes


Class file image Download

     * sample example code for BingSearch.php class
     * @author Daniel Boorn
     * @license apache 2.0
     * @bingapiurl

//register for key on windows azure
$apiKey = 'your api key here';
$bing = new BingSearch($apiKey);
# Example 1: simple image search
    $r = $bing->queryImage('xbox');
    # Example 2: advanced image search
    //be sure to respect the data types in the values
    $r = $bing->queryImage(array(
    //repeat examples for other search types...