menu 雨汐云API
color_lens

城市天气获取

使用教程

请求地址:/api/wether

返回数据:{"data":{"yesterday":{"date":"27日星期六","high":"高温 36℃","fx":"南风","low":"低温 27℃","fl":"","type":"多云"},"city":"北京","forecast":[{"date":"28日星期天","high":"高温 35℃","fengli":"","low":"低温 26℃","fengxiang":"南风","type":"多云"},{"date":"29日星期一","high":"高温 27℃","fengli":"","low":"低温 23℃","fengxiang":"南风","type":"中雨"},{"date":"30日星期二","high":"高温 34℃","fengli":"","low":"低温 24℃","fengxiang":"西南风","type":"多云"},{"date":"31日星期三","high":"高温 35℃","fengli":"","low":"低温 23℃","fengxiang":"北风","type":"多云"},{"date":"1日星期四","high":"高温 34℃","fengli":"","low":"低温 24℃","fengxiang":"北风","type":"晴"}],"ganmao":"相对今天出现了较大幅度降温,较易发生感冒,体质较弱的朋友请注意适当防护。","wendu":"25"},"status":1000,"desc":"OK"}

Example

调用效果: 暂无

				暂无
			

请求参数

参数名称 类型 参数值 描述
city 必填 city 即需要查询天气的城市名称
设置文档主题

主题色

主色

强调色