稳定、快速、免费的 API 接口服务
情感伤感语录,欢迎对接
接口地址: https://api.suyanw.cn/api/qg.php
返回格式: JSON
请求方式: GET/POST
请求示例: https://api.suyanw.cn/api/qg.php?type=json
请求参数说明:
| 名称 | 必填 | 说明 |
|---|---|---|
| type | 否 | 返回格式,默认text可选json |
系统级错误:
| 名称 | 说明 |
|---|---|
| 400 | 请求错误! |
| 403 | 请求被服务器拒绝! |
| 405 | 客户端请求的方法被禁止! |
| 408 | 请求时间过长! |
| 500 | 服务器内部出现错误! |
| 501 | 服务器不支持请求的功能,无法完成请求! |
| 503 | 系统维护中! |
返回示例:
爱就是,哪怕别人认为你是个十足的女汉纸,他仍然认为你很需要照顾。
错误码格式说明:
| 无 |
|---|
调用示例:
<script type="text/javascript" src="https://api.suyanw.cn/api/qg.php?type=js"></script><script>suyan()</script>
代码示例PHP:
<?php
header('Content-type:text/json;charset=utf-8;'); $type = $_GET['type']; $result = file_get_contents('https://api.suyanw.cn/api/qg.php?type=' . $type); echo $result; ?>