英文:
How to filter a specific verb in getActivities in GetStream
问题
我正在寻找一种在GetStream API的feed.getActivities()
上按动词应用过滤器的方法,类似于lg_te
或其他内容。我想要将动词筛选为类似于writeArticle
的内容。是否有任何方法?不幸的是,在文档中我找不到任何相关内容。
感谢您所有的帮助。
英文:
I'm looking for a way to apply a filter by verb on feed.getActivities()
in GetStream API, more than lg_te or etc. I want to filter verb to be equals something like writeArticle
. Is there any way? Unfortunately, I couldn't find anything in the docs.
Thank you for all of your help.
答案1
得分: 2
你不能。
对于这些活动,将它们放入一个单独的动态源中,直接阅读,并让您的原始动态源关注这个新的动态源。
- 您当前的关注:添加到X
- 您的新关注:添加到文章动态源,X将关注文章动态源,所以一切都和以前一样。
但现在您可以进行筛选,只需阅读文章动态源。
英文:
You can't.
For these activities, put them into a separate feed and read directly and make your original feed to follow this new feed.
- Your current follow: add to X
- Your new follow: add to article feed and X will follow article feed so everything as before.
But now you can filter, just read article feed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论