/bing/wallpaper
概述
获取当日 bing 壁纸
终端点
- Endpoint:
/bing/wallpaper - 方法:
GET
参数
| 名称 | 类型 | 默认值 | 必须 | 说明 |
|---|---|---|---|---|
| type | 'large' | 'mini' | large | 否 | 返回的图片尺寸,'large' 代表 1920x1080,'mini' 代表 768x1366 |
示例
获取标准大小壁纸
bash
curl https://api.imyan.ren/bing/wallpaper -O image.jpg获取小尺寸竖屏壁纸
bash
curl https://api.imyan.ren/bing/wallpaper?type=mini -O image-mini.jpg响应
标准尺寸
小尺寸
错误
Invalid type
type 参数类型错误
json
{
"code": 5001,
"message": "Invalid type, must be one of large, mini",
"data": null,
"success": false
}