Keyword Filters and Getting Blocks
Keyword Filters and Getting Blocks
There was recently a batch of newly added endpoints that I added to the API. Not everybody follows every PR in the repo, so I thought I would share them here so that more people can make use of them. Here are the new endpoints:
• GET user/block/list_all - This returns a paginated list of all the different blocks that a user has. This is based on the lower portion of /user/settings/filters in the web UI. We already have endpoints to add blocks, but haven't had anywhere to fetch them for a user...until now.
• GET user/filter - This returns the info for a specific keyword filter
• GET user/filter/list - This returns a paginated list of a user's keyword filters
• POST user/filter - This creates a new keyword filter
• PUT user/filter - This edits a keyword filter
• POST user/filter/delete - This deletes a keyword filter
These new endpoints are live on crust. Let me know if you have any questions or requests!
Comments