Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dotos
committed
Nov 16, 2016
1 parent
8d788a1
commit f5fb02d
Showing
4 changed files
with
135 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,55 @@ | ||
|
||
# Coming Soon | ||
# Bing Pictures Interface | 必应壁纸接口 | ||
> :hammer: `Bing 壁纸 Api`重装上阵啦 :smile: | ||
## 目前开放的壁纸接口: | ||
- `/v1{d,w,h,callback}` 返回今日的壁纸完整数据(`可选参数{d,w,h}`): | ||
|
||
> 若指定参数`{w,h}` ,则直接返回图片 | ||
```js | ||
// d:自今日起第d天前的数据 | ||
// w:图片宽度 | ||
// h:图片高度 | ||
// callback:JSONP的回调函数名 | ||
``` | ||
- `/v1/rand{w,h,type,callback}` 返回随机的壁纸(`可选参数{w,h,type,callback}`): | ||
|
||
```js | ||
// w:图片宽度 | ||
// h:图片高度 | ||
// type:json,返回值为JSON数据 | ||
// callback:JSONP的回调函数名 | ||
``` | ||
- `/v1/blur{d,w,h,r}` 返回高斯模糊壁纸(`可选参数{d,w,h,r}`): | ||
|
||
```js | ||
// d:自今日起第d天前的数据 | ||
// w:图片宽度 | ||
// h:图片高度 | ||
// r:模糊半径(1~50) | ||
``` | ||
|
||
### **:warning:** `高斯模糊`接口目前只支持指定分辨率(`w,h`)的图片,具体分辨率如下: | ||
```js | ||
/** | ||
* 已知分辨率 | ||
*/ | ||
resolutions: [ | ||
'1920x1200', | ||
'1920x1080', | ||
'1366x768', | ||
'1280x768', | ||
'1024x768', | ||
'800x600', | ||
'800x480', | ||
'768x1280', | ||
'720x1280', | ||
'640x480', | ||
'480x800', | ||
'400x240', | ||
'320x240', | ||
'240x320' | ||
] | ||
``` | ||
|
||
欢迎点评→[issue](https://github.com/xCss/bing/issues) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters