myWastePickupCalendar
Updated on April 2, 2024 — json — 1 downloads
Basic API exposing calendar data in json format. Only one method available (getNextCollectesByPostalCode) and mapped on the API root /.
Hosted on AWS Lambda and served by AWS API Manager.
Source code is available in the GitHub repository.
API key upon request.
Sample code:
return new Promise(((resolve, reject) => {
const url = `${API_URL}?postalcode=${postalCode}`;
const options = {
headers: {
'X-API-KEY': `${API_KEY}`
}
}
request.get(url, options, (error, response, body) => {
let json = JSON.parse(body);
if (response && response.statusCode === 400) {
// error
} else {
// process
}
});
}));
- Type
- API
- MIME Type
- Created on
- July 29, 2022
- Modified on
- April 2, 2024
- Published on
- July 29, 2022