Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InjectionManagerFactory not found. #6

Open
XiaoSuWorld opened this issue Jun 27, 2023 · 0 comments
Open

InjectionManagerFactory not found. #6

XiaoSuWorld opened this issue Jun 27, 2023 · 0 comments

Comments

@XiaoSuWorld
Copy link

Context context = new ContextBuilder()
.priority(Priority.REALTIME)
.build();

    CommandExecutor executor = NameApiRemoteExecutors.get();
    Mode mode = NameApiModeFactory.withContext(
            "api-key",
            context,
            //the default and live server is "api.nameapi.org"
            new Host("api.nameapi.org", Protocol.HTTPS), NameApiPortUrlFactory.version5_3()
    );

    EmailNameParserCommand command = new EmailNameParserCommand();
    try {
        EmailNameParserResult result = executor.execute(command, mode, "[email protected]").get();
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant