Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106786690
freebase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Mar 31, 15:11
Size
428 B
Mime Type
text/x-php
Expires
Wed, Apr 2, 15:11 (2 d)
Engine
blob
Format
Raw Data
Handle
25274483
Attached To
rPH Phabricator
freebase.php
View Options
<?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
"
;
Event Timeline
Log In to Comment