The AerisWeather Class

As we alluded to previously, the AerisWeather class is where all the magic happens. From this class we can make requests to the API and get fully hydrated response objects. And it all starts with one line of code:

    aeris = AerisWeather(client_id=client_id, client_secret=client_secret, app_id=app_id)

If you take a look at the examples provided with the SDK, you'll see that everything starts with this line. For mote details on the specifics of the AerisWeather class and it's use, you check out any of the examples, the class reference docs, the Jupyter notebook or the demo file - like we said, it's everywhere...

Ok! Now that we've created our aerisweather object, and have our credentials configured, we only need two more things (at a minimum) for every request to the AerisWeather API:

  • an Endpoint (what)
  • a Location (where)

Last modified: July 30, 2020