lyuke / heweather

一个和风天气的api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heweather

how to use it

npm install --save-dev heweather

const weather = require('heweather');

const p = weather.getWeatherByCityID('cityID');

p.then((res)=>{
  // deal with the response;
},(err)=>{
  // deal with the error;
});


const A=weather.getWeatherByAttractions('cityID');

p.then((res)=>{

  },(err)=>{

    });

cityIDs are as below CityID list; Attractions list

About

一个和风天气的api


Languages

Language:JavaScript 100.0%