This project is a little .net Core exercise that monitors a subreddit topic and reports on:
- Posts with most up votes
- Users with most posts
Before using this code, you'll need to create an app. If you want to use the "Help me get tokens" method for getting tokens, the callback URL for your app needs to be https://not-an-aardvark.github.io/reddit-oauth-helper/.
To use Reddit.NET, you need your App Id, App secret and a token. The info at the "Help me get tokens" link will explain how to get a long-lived token.
Help me get an app
Help me get tokens
Reddit.NET
💡 Happy to have found Reddit.NET as most of the work is being done by that package.
DotNetEnv
This singleton pattern example illustration is very helpful in understanding how the monitor class is working.
Reddit api docs This code doesn't interact directly with the Reddit api. Leaving that to Reddit.NET.