Reputation: 5891
I am working on reddit api to get comments, upvoted, downvoted etc. When I hit " https://www.reddit.com/user/{username}/comments.json", it is working properly. When I hit " https://www.reddit.com/user/{username}/upvoted.json" it gives me 403 Forbidden. I added access_token also but same error.
How can I get the second url working?
Upvotes: 2
Views: 986
Reputation: 2875
The user has deselected make my votes public
in his preferences and thus you get this error.
Note:
If you directly get this URL with java you are not logged in, so even if it is your account you won't be able to access it.
You might want to refer to this question for trying to log in.
Upvotes: 3