toolbox-team / reddit-moderator-toolbox-legacy

LEGACY VERSION do not use
http://www.reddit.com/r/toolbox
Apache License 2.0
66 stars 40 forks source link

[reddit API] split reddit API calls from TBUtils. #350

Open agentlame opened 9 years ago

agentlame commented 9 years ago

See libs/redditapi.js for initial concept. The API lib should not depend on TB/TButils at all. It should be completely self-contained and reusable in any JS project/extension.

At some point we may even want to split it into another repo entirely, so it can be developed independently of toolbox, supporting calls and features that aren't needed in TB. (IE: PRAW/AutoModerator)

creesch commented 7 years ago

I am going to see if I can this give a place in the reddit redesign project. In fact, this is probably one of the few things I can already tackle in advance.

This probably needs smart migration where all the current api calls can still be called from TBUtils but are forwarded to TBApi

creesch commented 7 years ago

On second thought, that is a overambitious. Though it is a good idea to clean up TBUtils for the redesign doing a structural overhaul probably should be done on a stable toolbox.