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:
Date: 8 years 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...

For more information send a message to info at phpclasses dot org.