sweemeng / cuaca

A wrapper for the Malaysian Weather Service API
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Get the data dictionary of the data results #5

Closed efaisal closed 7 years ago

efaisal commented 7 years ago

Using MET API datatypes endpoint to get some kind of description of what the results mean.

api = cuaca.WeatherAPI(token, cache_dir(".") # Using cache files in current dir
datatypes = api.datatypes() # Llist of available datatypes
api.save_cache()