API - What goes where

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[]) =>
        'Western Cape municipalities:',
        municipalities.map((el: Municipality) => el.name)

I'm thinking I need to  *POST TEXT* ?????

This is the source of the commands


Any help appreciated

3 posts were merged into an existing topic: Api pointers - anyone?