scragg0x / bing-api-php
Bing API wrapper in php
Installs: 7 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 3
Open Issues: 2
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2024-12-16 15:20:57 UTC
README
Very simple bing api wrapper in php.
Install
The recommended way is through
composer. Just create a composer.json
file and
run the php composer.phar install
command to install it:
{
"require": {
"scragg0x/bing-api-php": "dev-master"
}
}
API Reference
http://datamarket.azure.com/dataset/bing/search
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);