Examples of reportSpam()


Examples of twitter4j.Twitter.reportSpam()

            System.out.println("java twitter4j.examples.spamreporting.ReportSpam [screen name]");
            System.exit(-1);
        }
        try {
            Twitter twitter = new TwitterFactory().getInstance();
            System.out.println("Successfully reported @" + twitter.reportSpam(args[0]).getScreenName() + " as a spammer.");
        } catch (TwitterException te) {
            te.printStackTrace();
            System.out.println("Failed to report spam: " + te.getMessage());
            System.exit(-1);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.