heweather

a heweathor api

Usage no npm install needed!

<script type="module">
  import heweather from 'https://cdn.skypack.dev/heweather';
</script>

README

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