입니다. 그러나 동일한 구성 파일은이를 보여줍니다 내가 System.out.println(twitterStreamClient.getOAuthAccessToken().getTokenSecret());
를 인쇄 할 때 내가401 twitterstream을 만들 때 오류가 발생했습니다. 구성에서 소비자 키, 비밀 키를 추가 했는데도 401 오류가 발생하더라도
[Twitter Stream consumer-1[Establishing connection]] INFO - 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body>
<h2>HTTP ERROR: 401</h2>
<p>Problem accessing '/1.1/statuses/filter.json'. Reason:
<pre> Unauthorized</pre>
</body>
</html>
로 오류가 발생했습니다 다음
TwitterFactory twitterFactory = new TwitterFactory(configuration);
Twitter twitterClient = twitterFactory.getInstance();
좋은 일이지만
TwitterStreamFactory twitterStreamFactory = new TwitterStreamFactory(configuration);
TwitterStream twitterStreamClient = twitterStreamFactory.getInstance();
FilterQuery filterQuery = new FilterQuery(followersId);
twitterStreamClient.addListener(statusListener);
twitterStreamClient.filter(filterQuery);
작동하지 않습니다 accesstoken 비밀 값. 나는 이것과 혼동한다. 누구든지 나를 도울 수 있습니까?