library bing-api-php
Bing API wrapper in php
scragg0x/bing-api-php
Bing API wrapper in php
- Tuesday, November 10, 2015
- by scragg0x
- Repository
- 2 Watchers
- 6 Stars
- 6,274 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 2 Open issues
- 1 Versions
- 11 % Grown
bing-api-php
Very simple bing api wrapper in php., (*1)
Install
The recommended way is through
composer. Just create a composer.json
file and
run the php composer.phar install
command to install it:, (*2)
{
"require": {
"scragg0x/bing-api-php": "dev-master"
}
}
API Reference
http://datamarket.azure.com/dataset/bing/search, (*3)
Example
<?php
require_once __DIR__ . "/vendor/autoload.php";
use Bing\Client;
// You need to obtain a key
$key = '';
$c = new Client($key, 'json');
$res = $c->get('News', array('Query' => 'Obama'));
$res = json_decode($res, true);
print_r($res);