文档
测试

首页实时数据

POST
/weather/v2/homePageRealTime

接口描述

首页实时数据情况(只加载首页的温度、天气等信息)

请求头

参数名
类型
描述
必填
ACCESSTOKEN
String
用户(设备)唯一标识
必填

请求参数

参数名
类型
描述
必填
cityid
String
城市id
必填
lon
String
经度
必填
lat
String
纬度
必填
type
int
1-定位城市 2-保存城市
必填

响应参数

参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-失败
必填
data
object
返回结果对象
必填
humidity
string
湿度
必填
tem
string
气温
必填
temFeels
string
体感温度
必填
wea
string
天气情况
必填
win
string
风向
必填
winSpeed
string
风力
必填
bgVideo
String
背景视频链接
必填
weaImg
String
天气图标
必填
message
string
返回结果信息
必填
size
int
返回结果对象长度
必填

说明 / 示例

{ "code": 1000, "data": { "bgVideo": "https://vracloss.kuyin123.com/11W2MYCO/rescloud1/8b407065f5a74d9ba93a3302f3c31087.mp4?restype=2&a=9d", "humidity": "58.0%", "tem": "15.3", "temFeels": "14.0", "wea": "阴", "win": "东风", "winSpeed": "2级" }, "message": "查询首页实时天气数据成功", "size": 1 }