Pyprohly / reddit-api-doc-notes

14 stars 2 forks source link

Update "wikiedit" ID #1

Closed palexdev closed 2 years ago

palexdev commented 2 years ago

Hello! /u/ThreeSixty404 here, you helped me on redditdev with the /prefs/ API confusion I had

I cloned this repo, installed python and compiled it, it is simply amazing, thanks!

About this PR
I'm implementing the PATCH request for /api/v1/me/prefs and I was always having an error saying that the scope was insufficient, well turns out I was missing some of them, they are not documented on the official page, so I added them (thanks again) and this time I was having an issue with the authorization page saying "invalid scope".
I modified the "wikiedit" scope to "wiki" as mentioned in your documentation and turn out it is wrong, the correct ID is "wikiedit"

Pyprohly commented 2 years ago

This information was simply copied from the output of GET /api/v1/scopes, so I did not put “wiki” here instead of “wikiedit” with the implication that you should send “wiki” instead of “wikiedit” when requesting authorisation.

Side note, you said that you were ‘missing’ scopes. YSK if you need all scopes you can get all scopes by sending the * scope.

palexdev commented 2 years ago

Ooh I see thanks for the clarification

I didn't know about the *, I'll correct the code in my library