cityweather-class: cityweather

Description Fields Methods

Description

This object can connect to the openweathermap API and get the 24 hours forecasting of the desired city. For more information about this API see the link bellow : https://openweathermap.org/

Fields

cityname

A character shows the city name.

content

A list contains the content of API response.

status_code

An integer that shows the status code of API response.

has_error

A boolean that shows TRUE if there is an error.

Methods

initialize(cityname, key = "3c656bd3014279a8f41b90522c014977")

Getting the data from API

print()

Print out the structure of response content


nahfa911/weatherforecas documentation built on May 29, 2019, 3:07 a.m.