随机唯美文案
随机输出唯美文案,大约2000多句,很多

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

返回格式: JSON

请求方式: GET/POST

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

请求参数说明:

名称 必填 类型 说明
?type=json string json输出

系统级错误:

名称说明
400请求错误!
403请求被服务器拒绝!
405客户端请求的方法被禁止!
408请求时间过长!
500服务器内部出现错误!
501服务器不支持请求的功能,无法完成请求!
503系统维护中!

返回示例:

面对,不一定最难过。孤独,不一定不快乐。得到,不一定能长久。失去,不一定不再拥有。不要因为寂寞而错爱,不要因为错爱而寂寞一生。

错误码格式说明:

调用示例:

<script type="text/javascript" src="https://api.suyanw.cn/api/weimei.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/weimei.php?type=' . $type); echo $result; ?>