Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Raw Request Option #19

Closed
ZeyoYT opened this issue Jun 1, 2024 · 7 comments
Closed

Add Raw Request Option #19

ZeyoYT opened this issue Jun 1, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ZeyoYT
Copy link

ZeyoYT commented Jun 1, 2024

Is your feature request related to a problem? Please describe.
Some Endpoints are not Supported, like the random endpoint, and it would have been great if there was a option to get raw json response for endpoints that are not covered or in general for all

Describe the solution you'd like
A Method to get Raw Json Response

Describe alternatives you've considered
For now i have not considered anything for this

Additional context
To be honest, i just wanted the oauth authentication, since reddit made non-oauth endpoints blocked, i am having trouble in authenticating the api for my use case, i just want to fetch random post or sometimes new or hot posts from reddit

@masecla22
Copy link
Owner

I'll look into implementing something like this, but I don't have a lot of time.

I'll leave this open, and if someone wants to pick it up, they're free to do so!

@masecla22 masecla22 added enhancement New feature or request good first issue Good for newcomers labels Jun 8, 2024
@DisruptionSystemsINC
Copy link

On it

@DisruptionSystemsINC
Copy link

The /random endpoint has pretty weird behaviour.
It returns 403 Forbidden when you are authorized, but when leaving out the Auth header, it works just fine

@ZeyoYT
Copy link
Author

ZeyoYT commented Jul 13, 2024

Weird, well after this because i had to find a solution to my problem, i manage to fix my authentication problem i was getting, for me the authorised endpoint for random is working but the unauthorised one will throw 403

@DisruptionSystemsINC
Copy link

Weird, well after this because i had to find a solution to my problem, i manage to fix my authentication problem i was getting, for me the authorised endpoint for random is working but the unauthorised one will throw 403

What type of app are you using?
Currently i am testing with user script

@ZeyoYT
Copy link
Author

ZeyoYT commented Jul 13, 2024

Weird, well after this because i had to find a solution to my problem, i manage to fix my authentication problem i was getting, for me the authorised endpoint for random is working but the unauthorised one will throw 403

What type of app are you using?
Currently i am testing with user script

I develop discord bots, i was going to use this for fetching memes and random posts, but due to the unavailability i had to implement a custom solution for this, basically using the raw reddit api without any wrappers

@masecla22
Copy link
Owner

This has been fixed in #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants