【发布时间】:2020-02-03 21:54:57
【问题描述】:
请帮助我。 API 和 Shutterstock 网站中的搜索查询结果不同。 我做错了什么?
API 仅返回 4 个结果,但在 shutterstock - 数千 我的代码:
$queryFields = [
"query" => "осень лес векторы"
];
$options = [
CURLOPT_URL => "https://api.shutterstock.com/v2/images/search?" . http_build_query($queryFields),
CURLOPT_USERAGENT => "php/curl",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer xxxxx"
],
CURLOPT_RETURNTRANSFER => 1
];
$handle = curl_init();
curl_setopt_array($handle, $options);
$response = curl_exec($handle);
curl_close($handle);
$decodedResponse = json_decode($response);
echo "<pre>";
print_r( $decodedResponse );
echo "</pre>";
谢谢。
【问题讨论】:
标签: shutterstock