Bossid-设计图库-内容使用API

Bossid-设计图库 API 允许您使用 Bossid-设计图库 的搜索、许可和图像编辑功能访问我们的完整图像、SVG图像和png图片。为了使用我们的 API,您需要:

使用方法

AppId:1

AppSecret:PHPCMF5C75F14DF59E9

V1请求地址:https://bossid.cc/index.php?v=1&appid=2&appsecret=PHPCMF9ADDEFD48DCBD&

V2请求地址:https://bossid.cc/index.php?v=2&appid=2&signature=[客户端加密字符串]×tamp=[客户端请求时间戳]&
$queryFields = [
"query" => "hiking",
"image_type" => "photo",
"orientation" => "vertical",
"people_number" => 3
];
$options = [
CURLOPT_URL => "https://bossid.cc/index.php?v=2&appid=2&signature=" . http_build_query($queryFields),
CURLOPT_USERAGENT => "php/curl",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer $SHUTTERSTOCK_API_TOKEN"
],
CURLOPT_RETURNTRANSFER => 1
];
$handle = curl_init();
curl_setopt_array($handle, $options);
$response = curl_exec($handle);
curl_close($handle);
$decodedResponse = json_decode($response);
print_r($decodedResponse);