mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
23786784ef
Summary: Adds the Balanced PHP API to externals/. Ref T2787. Test Plan: Used in next diff. Reviewers: btrahan, chad Reviewed By: chad CC: aran, aurelijus Maniphest Tasks: T2787 Differential Revision: https://secure.phabricator.com/D5764
12 lines
No EOL
428 B
PHP
12 lines
No EOL
428 B
PHP
<?php
|
|
/**
|
|
* Grab some The Dead Weather albums from Freebase
|
|
*/
|
|
require(__DIR__ . '/../bootstrap.php');
|
|
|
|
$uri = "https://www.googleapis.com/freebase/v1/mqlread?query=%7B%22type%22:%22/music/artist%22%2C%22name%22:%22The%20Dead%20Weather%22%2C%22album%22:%5B%5D%7D";
|
|
$response = \Httpful\Request::get($uri)
|
|
->expectsJson()
|
|
->sendIt();
|
|
|
|
echo 'The Dead Weather has ' . count($response->body->result->album) . " albums.\n"; |