libodonjs
libodonjs copied to clipboard
Reduce functions and move to universal api()?
Instead of create a function for each endpoint / variante why not just use few functions Like
api(endpoint, params, action)
//api("/api/v1/statuses/", {id: "<ID>"}, "unreblog")
One function isn't enough, but maybe few will be fine?
statuses()
accounts()
...