0

我已经安装了 unirest 虽然作曲家,但它没有返回任何东西。这个简单的代码有什么问题吗?


require_once 'vendor/autoload.php';

$response = Unirest\Request::get("https://contextualwebsearch-websearch-v1.p.mashape.com/api/Search/ImageSearchAPI?autoCorrect=true&count=50&q=Donald+Trump",
  array(
    "X-Mashape-Key" => "my key",
    "Accept" => "application/json"
  )
);

echo $response->body;
?>

(我有钥匙)

4

0 回答 0