Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F474814
freebase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
428 B
Referenced Files
None
Subscribers
None
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
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 9:32 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
85016
Default Alt Text
freebase.php (428 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment