情感一言
情感伤感语录,欢迎对接

接口地址: https://api.suyanw.cn/api/qg.php

返回格式: JSON

请求方式: GET/POST

请求示例: https://api.suyanw.cn/api/qg.php?type=json

请求参数说明:

名称 必填 类型 说明
?type=json string 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; ?>