A wrapper around the Reddit API
A very simple wrapper around Reddit's API, built for an on going side project. Currently has a very, very slim API, but as I need it more I'll develop out the API.
Please don't use or rely on this yet - it's still very young and I'm currently constantly tweaking.
Primary use at the moment is to get listings:
var wrap = ;wraplistingsubReddit: 'vim' // leave out to get posts from home pagecategory: 'new' // leave out to get 'hot' posts (usually what you want)// body is the JSON response, parsed into a json object;
It also does caching, although that's only supported through MongoDB right now.
There's lots missing here. Most importantly: