[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/httpful/examples/ -> freebase.php (source)

   1  <?php
   2  /**
   3   * Grab some The Dead Weather albums from Freebase
   4   */
   5  require (__DIR__ . '/../bootstrap.php');
   6  
   7  $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";
   8  $response = \Httpful\Request::get($uri)
   9      ->expectsJson()
  10      ->sendIt();
  11  
  12  echo 'The Dead Weather has ' . count($response->body->result->album) . " albums.\n";


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1