稳定、快速、高效的 API 接口服务
返回必应每日一图
接口地址: https://api.svipk.com/api/bing/
返回格式: JSON
请求方式: GET
请求示例: https://api.svipk.com/api/bing/?apiKey=后台获取的秘钥
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
无 | 否 | 无 | 无 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
图片 | jpg/png | 图片一张 |
返回示例:
图片一张
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?php
$src = "https://www.jianghu.cool/api/bing/?apiKey=后台获取的秘钥";
header('Content-type: image/png');
$res = imagecreatefromstring(file_get_contents($src));
imagepng($res);
imagedestroy($res);
?>