接口地址: http://api.ilingku.com/int/v1/lantern

返回格式: javascript

请求方式: get

请求示例: http://api.ilingku.com/int/v1/lantern?act=demo

请求参数说明:

名称 必填 类型 说明
act string 输出类型(demo=演示效果、single=单边灯笼、留空=双边灯笼)
type string 演示类型 act=demo参数时(single=单边灯笼演示、留空=双边灯笼演示)

返回参数说明:

名称 类型 说明

返回示例:

直接将下方JS放入内容最下方 body 中(双边)
<script src="http://api.ilingku.com/int/v1/click.sound"  data-left="领酷" data-right="网络"></script>
直接将下方JS放入内容最下方 body 中(单边)
<script src="http://api.ilingku.com/int/v1/click.sound?act=single"  data-left="领" data-right="酷"></script>

错误码格式说明:

名称 类型 说明
code string 错误代码
msg string 错误提示

代码示例:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>给网站添加上春节灯笼挂件</title>
</head>
<body style="background-color: black;">
<div style="display: flex;justify-content: center;height: 90vh;align-items: center;">
<a href="http://api.ilingku.com/" style="text-decoration: none;"><p style="color:#ccc;font-size: 3em;">欢迎访问</p> </a>
</div>
<script src="http://api.ilingku.com/int/v1/lantern" data-left="领酷" data-right="网络"></script>
</body> 
</html>
. 领酷API接口大全 Inc All Rights Reserved.蜀ICP备2023019253号-2