Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110102438
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
Thu, Apr 24, 17:52
Size
428 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 17:52 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25786171
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