I am new to social network analysis and twitter API. I wanted to collect tweets on a specific topic. So I wrote the following code
package com; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.List; import twitter4j.Query; import twitter4j.QueryResult; import twitter4j.Status; import twitter4j.Tweet; import twitter4j.Twitter; import twitter4j.TwitterException; import twitter4j.TwitterFactory; public class TwitterSearchAdvance { public static void main(String[] vishal) throws TwitterException, IOException {
But when I run the following program, the next error starts
Exception in thread "main" java.lang.IllegalStateException: Authentication credentials are missing. See http:
Where do I need to provide credentials in my program
thanks
source share