Minimalistic api wrapper for:
- Getting a list of posts on a subreddit
- Paging through the list of posts
let minimalistSubredditWrapper = require("minimalist-subreddit-wrapper")
let r = new redditWrapper('<Sub reddit name>');
r.getsubredditPosts().then(response =>{
console.log(response.body);
});
r.pageNext().then(response =>{
console.log(response.body);
});
r.pagePrevious().then(response=>{
console.log(response.body);
})
r.page(true, 'ab92o2p', 'u5u6i4p').then(response=>{
console.log(response.body);
});