Skip to content

Exception in thread "main" de.fjobilabs.botometer.BotometerException: Botometer failed to analyze account data #10

Description

@NickCoding22

Attempting to go through the test analysis but it says that the error is caused by the API not existing? I'm confused on how to proceed from here.

`package botometerTesting;

import de.fjobilabs.botometer.AccountAnalysisResult;
import de.fjobilabs.botometer.Botometer;
import de.fjobilabs.botometer.BotometerConfiguration;
import de.fjobilabs.botometer.BotometerConfigurationBuilder;
import de.fjobilabs.botometer.BotometerFactory;

import twitter4j.User;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.TwitterException;

public class botoMeterHandler {

static Twitter twitter = TwitterFactory.getSingleton();
static User theUser;

static public final String BotometerAPIKey   = "",
							consumerKey      = "",
							consumerSecret   = "",
							accessToken      = "",
							acessTokenSecret = "";

public static void main (String[] args) throws TwitterException {
	
	BotometerConfiguration config = new BotometerConfigurationBuilder()
		    .botometerApiKey(BotometerAPIKey) // X-RapidAPI-Key
		    .twitterConsumerKey(consumerKey) //consumer-key
		    .twitterConsumerSecret(consumerSecret) //consumer-secret
		    .twitterAccessToken(accessToken) //access-token
		    .twitterAccessTokenSecret(acessTokenSecret) //access-token-secret
		    .build();

	Botometer botometer = new BotometerFactory(config).create();
	
	theUser = twitter.showUser(twitter.getId());
	
	AccountAnalysisResult result = botometer.analyzeAccount(theUser.getScreenName());
}

}
`

And the error is
Screen Shot 2022-05-19 at 9 19 45 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions