How to create a connection to Reddit Using the "Make an OAuth 2.0 request"?

Steps taken:
I have created an app in reddit using the documentation I found here:
https://www.help.make.com/en/help/app/reddit#generating-your-own-client-id-and-client-secret-values-964489

I would like to make an authorized Get request but I get a bad request while trying to connect to Reddit, it says an invalid client ID, but that is not possible I copy / pasted the ID directly and verified its the same as from the screenshot:

According to https://www.make.com/en/help/tools/http#make-an-oauth-2-0-request,

You should be using this redirect_uri https://www.integromat.com/oauth/cb/oauth2

3 Likes

Of course… haha thanks a lot, this works:

I run into this now though:
Scherm­afbeelding 2024-03-15 om 09.20.50

Maybe I should just make a new app, but since the token expires in an hour, for the refresh tokens, do I need to put additional parameters like this?
Scherm­afbeelding 2024-03-15 om 09.20.18

EDIT: new app in reddit, doesnt work… Maybe its due to the same account doing the request…
EDIT 2: I tried another account, I get the same message unfortunately.

Maybe this has something to do with the request coming from the module?

I realize there might be a bit more to this according to this documentation: OAuth2 · reddit-archive/reddit Wiki · GitHub

I did add:
scope: read

Since I only want to read a Reddit post urls JSON

And under custom headers I put:
user-agent: <platform>:<app ID>:<version string> (by /u/<reddit username>)

Im just wondering that due to a few bad requests I may be banned or something? Are you not allowed to make some mistakes while trying to make an authentication?

I have no idea about the new error message now, you might want to start a new thread just for it.

2 Likes

no problem I thought it is still within the scope of this topic but Ill make a new one no worries

2 Likes