The following application is a toy application will query a specific sub-reddit (defaulted to "r/funny") to pull the following information:
- Post with the highest score
- Top 5 authors for the sub-reddit
To retrieve the results, you can use the Swagger page to hit GET /statistics.
To use the application, you need to set the ApiToken
in the appsettings.Development.json
:
"RedditSettings": {
"ApiToken": ""
}
- Based on the current implementation against Reddit's API, it will only pull back the most recent posts from the target sub-reddit.