getWeatherInfo 获取指定城市的天气信息

getWeatherInfo ^7.8

获取指定城市的天气信息

#请求参数

Prop Type Default Comment
cityNo String N/A 位置信息

#引入接口模块

import bridge from '@minix-iot/etsbridge-sdk'

#接口调用示例

const params = {
  cityNo: '位置信息',
}
bridge
  .getWeatherInfo(params)
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })

#接口返回示例

{
    "data": {},
    "status": 0
}
posted on 2024-12-28 16:37  AtlasLapetos  阅读(16)  评论(0)    收藏  举报