Require the file via the namespace algn/DarkSky
and createa new instance of the class by passing your api key in the constructor.
You can use the following methods to retrieve data from dark sky.
today()
- Returns weather data from today
week()
- Returns weather data from today and a week ahead
past30Days()
- Returns data from the past month