reddit-api-client
Barebones Reddit API client for Node.js. Just pass in your credentials and make
requests yourself by passing the url and the params needed for the call.
https://www.reddit.com/dev/api
is your friend, no classes and no sugar
included.
usage
npm i reddit-api-client
const RedditClient = ;// insert real credentials belowconst r = "redditKey": "XXXXXXXXXXXXXX" "redditSecret": "YYYYYYYYYYYYYYYYYYYYYYYYYYY" "redditUser": "ZZZZZZZZZZZZZZ" "redditPass": "TTTTTTTTTTTTTTTTTTTT" "redditUserAgent": "QQQQQQQQQQQQQQ"; r;
Checkout the /example
folders for more examples and advanced usage. Read
the source code as well (100ish LOC).
alternatives
If you want a fully-featured JavaScript wrapper for the reddit API use https://github.com/not-an-aardvark/snoowrap instead.