This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Everything is just about completed, except |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've started implementing a controller for wiki objects. This PR is still very much a draft and work in progress, having still several things that will need doing before it is ready (some of which I will admit not to having enough knowledge of the codebase to do myself). I'll list these below:
wiki.getDiscussions()
. This returns a list of discussions about a given wiki page, and takessubreddit
andpage
as arguments. This is in the form of a listing, which is arguably the most obtuse part of the Reddit API, and one I won't be able to do myself.wiki.getRevisions()
. This returns a list of recently changed wiki pages in the givensubreddit
.wiki.getPageRevisions()
. As above, returns a list of recent changes but for a givenpage
on asubreddit
.wiki.getPage()
. This returns the contents of a wiki page, but can take revision IDs to yield a diff if so desired. I imagine that this function should be implemented as internal, and expose two separate functions for the two different uses.wiki.getSettings
andwiki.changeSettings
do not have the settings interface defined yet, I want to experiment whether the endpoint for changing settings accepts partial settings or if it needs all of them.All the best :)