/heweather

一个和风天气的api

Primary LanguageJavaScript

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