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 subreddit querying to SubredditService #89

Open
kgellci opened this issue Mar 3, 2019 · 1 comment
Open

Add subreddit querying to SubredditService #89

kgellci opened this issue Mar 3, 2019 · 1 comment

Comments

@kgellci
Copy link
Owner

kgellci commented Mar 3, 2019

To the SubredditService module, add a method which takes a query string for the search term and returns a list of subreddits which match the query.

You can do this by adding a new route to SubredditService/Sources/APIRoute+Subreddit.swift
The route is subreddits/search

You will then need to create a new api call in SubredditService module which uses CoreAPI.results... with the newly specified route. You will also need to pass through the query string as a parameter all the way through to CoreAPI which makes the call.

@ghost
Copy link

ghost commented Jul 20, 2019

Hey I was looking at the code and while I'm unable to help with this I just wanted to say that if you can switch over the subreddit systems over to using the Reddit API's like this implies it would make something I'm trying to work on with this a lot easier so I'd also love to see this change made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant