cURL
curl "https://api.ruseo.cn/api/huayu?key=YOUR_API_KEY&word=%E7%8E%AB%E7%91%B0%E8%8A%B1"
查询生活常见的花及寓意。
https://api.ruseo.cn/api/huayu
接口调用前需要确认的核心配置。
/api/huayuhuayu必填参数必须传入,示例值可直接用于联调。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
是 | string | 需要审核通过的 ApiKey。请注册账号获取API Key。 | YOUR_API_KEY |
word |
是 | string | 花的名字 | 玫瑰花 |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/huayu?key=YOUR_API_KEY&word=%E7%8E%AB%E7%91%B0%E8%8A%B1
curl "https://api.ruseo.cn/api/huayu?key=YOUR_API_KEY&word=%E7%8E%AB%E7%91%B0%E8%8A%B1"
$url = 'https://api.ruseo.cn/api/huayu?key=YOUR_API_KEY&word=%E7%8E%AB%E7%91%B0%E8%8A%B1';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/huayu?key=YOUR_API_KEY&word=%E7%8E%AB%E7%91%B0%E8%8A%B1')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "huayu",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
cnflower |
string | 中文花名 | 玫瑰花 |
enflower |
string | 英文花名 | Maiden Blush Rose |
flowerlang |
string | 花语 | 你心知我心 |
flowerprov |
string | 花语箴言 | 自尊与面子是恋爱的障碍物 |
source |
string | 数据来源 | qqsuu |
点击左侧“发送请求”查看结果...