This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"popularity": 28287, | |
"avatar": "https://avatars0.githubusercontent.com/u/1299233?s=400&v=4", | |
"url": "https://github.com/toxtli", | |
"username": "toxtli", | |
"source": "andrewsosa" | |
}, | |
{ | |
"popularity": 21085, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import the necessary libraries | |
const request = require('request'); | |
const async = require('async'); | |
// Set the necessary credentials and tokens | |
const appId = 'YOUR_APP_ID'; | |
const appSecret = 'YOUR_APP_SECRET'; | |
const accessToken = 'YOUR_ACCESS_TOKEN'; | |
// Set the base URL for the Reddit API |
OlderNewer