Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80898302
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
Tue, Sep 3, 03:47
Size
428 B
Mime Type
text/x-php
Expires
Thu, Sep 5, 03:47 (2 d)
Engine
blob
Format
Raw Data
Handle
20474323
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