text: const axios = require('axios')
  const util = require('util');
  const uri = require('../uri');
  const confidential = require('../confidential');
  
  async function getNowWeather(location = "beijing", language = "zh-Hans", unit = 'c') {
      
      const query = confidential.main.signature();
      const url = util.format(uri.main.API_SENIVERSE_WEATHER_NOW, location, language, unit, query);
      console.log(url);
  
      const rsp = await axios.get(url)
          .catch(err => {
              throw err;
          });
      //   console.log('success:', JSON.stringify(rsp.body));
      return rsp;
  }
  
  exports.main = async (event, context) => {
      return await getNowWeather();
  }