static void Main(string[] args) { var api = new Api("https://rest.trackmatic.co.za/api/v1", "110", "9408065009082"); api.Authenticate("yase191!"); var response = api.ExecuteRequest(new LoadZones(api.Context)).Data; foreach (var zone in response) { var request = new DeleteZone(api.Context, zone.Id); api.ExecuteRequest(request); } }
static void Main(string[] args) { /*Create a new zone*/ CreateCompleteZone bdCreateCompleteZoneClient = new CreateCompleteZone(); bdCreateCompleteZoneClient.createCompleteZoneActiveAllDay(); /*Get a list of zone id and name for a given customer*/ GetAllZones bdGetZonesClient = new GetAllZones(); bdGetZonesClient.getAllZonesForCustomer(); /*Update an existing zone*/ UpdateZone bdZoneUpdate = new UpdateZone(); bdZoneUpdate.update(); /*Update an existing zone*/ DeleteZone deleteZone = new DeleteZone(); deleteZone.delete(); }