couldn't resolve AtlassianHostUserBuilder

Kavya Sai February 11, 2019
AtlassianHostUser hostUser = new AtlassianHostUserBuilder(host)
    .withUserAccountId("123456:1234abcd-1234-abcd-1234-1234abcd1234")
    .build();
atlassianHostRestClients
    .authenticatedAs(hostUser)
    .getForObject("/rest/api/example", Void.class);

Not working! 

1 answer

0 votes
Artem Grotskyi May 9, 2019

Hi Kavya,

you can try

AtlassianHostUser.builder(host) instead of new AtlassianHostUserBuilder(host)

 

Thanks,
Artem

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events