java - Java 中的 Twitter 流媒体 API 中的轨道带有空格?

标签 java twitter

连接到 Twitter 流 API 的两个 Java 库是 twitter4jtweetstream4j .

Twitter 流 API 允许 "tracks" with spaces :

Comma separated keywords and phrases are logical ORs, phrases are logical ANDs. Words within phrases are delimited by spaces. A tweet matches if any phrase matches. A phrase matches if all of the words are present in the tweet. (e.g. ‘the twitter’ is the AND twitter, and ‘the,twitter’ is the OR twitter.).

但是,尝试在 twitter4j 中使用带空格的轨道会导致 an error (401 未经授权)。当使用带空格的轨道时,tweetstream4j 也会抛出 401。

是否有人使用 Java 库连接到 Twitter 流 API 并使用带空格的轨道?哪个库和版本?

最佳答案

佑介claims to have fixed this适用于 twitter4j 2.1.7。

关于java - Java 中的 Twitter 流媒体 API 中的轨道带有空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4129552/

相关文章:

javascript - 加载 twitter 推文 410 错误

java - GWT - JavaScript 调试器的阻力

java - 多语言BBD方案

java - 使用java加密整数

twitter - 使用 Go 根据 RFC 1738 编码 URL 字符串

python - Tweepy 流式 API : filtering on user

java - 集成流程和通用处理程序的 Junit 测试用例

java - Eclipse(IBM RAD 7.5.3) : "class cannot be resovled to a type" error

javascript - 如何制作类似 "Acura"的交互式推文

twitter - Twitter 消息末尾出现奇怪的斜杠