1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-12-10 10:10:24 +02:00
notify/service/reddit
2022-11-20 13:49:37 +02:00
..
doc.go feat(service): Add Reddit service (#471) 2022-11-20 13:49:37 +02:00
mock_reddit_message_client.go feat(service): Add Reddit service (#471) 2022-11-20 13:49:37 +02:00
README.md feat(service): Add Reddit service (#471) 2022-11-20 13:49:37 +02:00
reddit_test.go feat(service): Add Reddit service (#471) 2022-11-20 13:49:37 +02:00
reddit.go feat(service): Add Reddit service (#471) 2022-11-20 13:49:37 +02:00

Reddit Usage

Ensure that you have already navigated to your GOPATH and installed the following packages:

  • go get -u github.com/nikoksr/notify

Steps for Reddit notifications

These are general and very high level instructions

  1. Log into Reddit create a new "script" type by visiting here
  2. The "redirect uri" parameter doesn't matter in this case and can just be set to http://localhost:8080
  3. Copy the client id and client secret for usage below
  4. Now you should be good to use the code detailed in doc.go

NOTE: You may have difficulties using your user's password if you have 2FA enabled. You can disable it by going here but be aware of the security implications and ensure you have a strong password set.