假定 API 部署到 https://example.net/
143 | php 144 |145 | 访问 146 | https://example.net/api 147 | ,跳转至图片地址 148 |
149 |150 | 访问 151 | https://example.net/api/?id=数字 152 | ,跳转至指定图片 153 |
154 |155 | 示例 156 | https://example.net/api/?id=3 157 |
158 |159 | 示例 160 | https://example.net/api/?id=3&json 161 |
162 |165 | 166 | 访问 167 | https://example.net/api/?raw 168 | 169 |
170 |服务器读取后输出,默认关闭
171 |174 | 175 | 访问 176 | https://example.net/api/?json 177 | 178 |
179 |输出json
180 |181 | {"id":3,url":"https://z3.ax1x.com/2021/08/19/fqDucQ.png"} 182 |184 |