轻惋壁纸 API,支持SSL

来源自轻惋壁纸,以前不支持SSL就不待见他,现在发现支持了!

简单介绍

输出内容示例

{"id":"138","source":"\u4f60\u7684\u540d\u5b57","type":"\u666f\u7269","url":"http:\/\/bizhi.chainwon.com\/?i=138","bd":"http:\/\/bizhi.chainwon.com\/bd\/138.jpg","shrink":"http:\/\/bizhi.chainwon.com\/shrink\/138.jpg","date":"2016-08-04 21:50:07","pid":"344","psource":"\u4e1c\u4eac\u98df\u5c38\u9b3c","ptype":"\u4eba\u7269","purl":"http:\/\/bizhi.chainwon.com\/?i=344","pbd":"http:\/\/bizhi.chainwon.com\/bd\/344.jpg","pshrink":"http:\/\/bizhi.chainwon.com\/shrink\/344.jpg","pdate":"2016-08-04 22:09:10","vid":"66","vsource":"\u8a00\u53f6\u4e4b\u5ead","vtype":"\u666f\u7269","vurl":"http:\/\/bizhi.chainwon.com\/?i=66","vbd":"http:\/\/bizhi.chainwon.com\/bd\/66.jpg","vshrink":"http:\/\/bizhi.chainwon.com\/shrink\/66.jpg","vdate":"2016-08-04 21:47:14"}
  • 格式化后为
{
 "id":"138",
 "source":"你的名字",
 "type":"景物",
 "url":"http://bizhi.chainwon.com/?i=138",
 "bd":"http://bizhi.chainwon.com/bd/138.jpg",
 "shrink":"http://bizhi.chainwon.com/shrink/138.jpg",
"date":"2016-08-04 21:50:07",
"pid":"344",
"psource":"东京食尸鬼",
"ptype":"人物",
"purl":"http://bizhi.chainwon.com/?i=344",
"pbd":"http://bizhi.chainwon.com/bd/344.jpg",
"pshrink":"http://bizhi.chainwon.com/shrink/344.jpg",
"pdate":"2016-08-04 22:09:10",
"vid":"66",
"vsource":"言叶之庭",
"vtype":"景物",
"vurl":"http://bizhi.chainwon.com/?i=66",
"vbd":"http://bizhi.chainwon.com/bd/66.jpg",
"vshrink":"http://bizhi.chainwon.com/shrink/66.jpg",
"vdate":"2016-08-04 21:47:14"
}

PHP使用实例

$html=file_get_contents("http://bizhi.chainwon.com/api/");
$json=json_decode($html);
echo'上传时间:'.$json->date."".'图片ID:'.$json->id."".'原图地址:'.$json->url."".'高清图片:'.$json->bd;

图片引用

场景 地址
全部随机 https://bizhi.chainwon.com/api/bizhi.png
全部随机-压缩版 https://bizhi.chainwon.com/api/bizhi-s.png
人物随机 https://bizhi.chainwon.com/api/people.png
人物随机-压缩版 https://bizhi.chainwon.com/api/people-s.png
景物随机 https://bizhi.chainwon.com/api/view.png
景物随机-压缩版 https://bizhi.chainwon.com/api/view-s.png
  • 这里放一张直接调用的例子

轻惋壁纸