The API is HTTP based, which means every time you use it you have to go find the exact method and such. By using the same pattern as currently used for loginClient we could abstract this out into a protocol independent module which activities could import to access the API, removing an annoying time-sink from further coding. Boils down to a grep for all occurrences of e.g. $.getJSON and $.post and refactoring them out.
The API is HTTP based, which means every time you use it you have to go find the exact method and such. By using the same pattern as currently used for loginClient we could abstract this out into a protocol independent module which activities could import to access the API, removing an annoying time-sink from further coding. Boils down to a grep for all occurrences of e.g. $.getJSON and $.post and refactoring them out.