Proxies Webhook callbacks from Trello (soon to add Twitch) via WebSocket to a Vue app running on a local machine.
Vue front-end overlay code is at https://github.com/jitterted/jitteroverlay
Trello board holding the features to work on, etc.: https://trello.com/b/wKSOndRf/jitterted-overlays
API reference docs for Trello are here: https://developer.atlassian.com/cloud/trello/rest/
Requires environment variables for Trello API token and key. More info soon.
-
Add exception handling for the
delete
webhook function -
Add better description info when registering webhooks with Trello
Change error handling like this:
// restTemplate.setErrorHandler(new DefaultResponseErrorHandler() { // @Override // public boolean hasError(ClientHttpResponse response) throws IOException { // return false; // } // });
But doesn't handle things well if the API returns different objects for different status codes
as per 'return_1's suggestion on stream:
restTemplate.exchange("", HttpMethod.GET, null,
new ParameterizedTypeReference<List<TrelloWebhook>>() {},
"");