假定 API 部署到 https://example.net/
访问 https://example.net/api ,跳转至图片地址
访问 https://example.net/api/?id=数字 ,跳转至指定图片
访问 https://example.net/api/?type=length
返回图片总量,即id上限
访问 https://example.net/api/?type=output
服务器读取后输出,一般不建议使用,默认禁用
访问 https://example.net/api/?type=json
服务器输出json
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg"}
访问 https://example.net/api/?type=JSON
服务器读取图片信息后输出json,如非需要图片信息不建议使用
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg","width":"1920","height":"1080","mime":"image\/jpeg","size":"821735"}