title: API Endpoint URL
body: <p>Basically, the weather API; Apixu changed everything to weatherstack recently, including their endpoints and I need help updating my twitter weather bot.</p>
  
  <p>I did go through the documentation, changed to axios but I keep getting the "Cannot Read Property error"</p>
  
  <p><strong>My Old API Setup</strong></p>
  
  <pre><code>   const Twit = require('twit');
     const config = require('./config');
     const rp = require('request-promise-native');
  
  async function setup(location) {
      const options = {
      url: "http://api.apixu.com/v1/current.json",
      qs: { 
            key: API_KEY,
            q: location
          },
      json: true
  };
      let result = await rp(options);
      let condition = result.current.condition.text;
      let tweetText = `The condition in ${location} is currently ${condition}!`;
      console.log("TWEETING : ", tweetText);
      sendTweet(tweetText)
  }
  </code></pre>
  
  <p><strong>According to their documentation, this is how it's supposed to be but I keep getting undefined errors.</strong></p>
  
  <pre><code>   const params = {
     access_key: 'YOUR_ACCESS_KEY',
     query: 'New York'
  }
  
  axios.get('https://api.weatherstack.com/current', {params})
     .then(response =&gt; {
     const apiResponse = response.data;
     console.log(`Current temperature in ${apiResponse.location.name} is ${apiResponse.current.temperature}℃`);
     }).catch(error =&gt; {
     console.log(error);
    });
  </code></pre>
  
  <p>The new Base URL: The new API requests start out with :</p>
  
  <p><a href="http://api.weatherstack.com/" rel="nofollow noreferrer">http://api.weatherstack.com/</a></p>
  
  <p>documentation : <a href="https://weatherstack.com/quickstart" rel="nofollow noreferrer">https://weatherstack.com/quickstart</a></p>
  
  <p>UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'c
  ondition' of undefined</p>
  
  <p>UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
  error originated either by throwing inside of an async function without a catch
  block, or by rejecting a promise which was not handled with .catch(). (rejection
   id: 1)</p>