Hi All,
I’ve got these API commands but I don’t know what to do with them
import { Search, Province, Municipality } from 'eskom-loadshedding-api';
Search.getMunicipalities(Province.WESTERN_CAPE).then((municipalities: Municipality[]) =>
console.log(
'Western Cape municipalities:',
municipalities.map((el: Municipality) => el.name)
)
);
I'm thinking I need to *POST TEXT* ?????
This is the source of the commands
https://openbase.com/js/eskom-loadshedding-api/documentation
Any help appreciated