AtlassianHostUser hostUser = new AtlassianHostUserBuilder(host) .withUserAccountId("123456:1234abcd-1234-abcd-1234-1234abcd1234") .build(); atlassianHostRestClients .authenticatedAs(hostUser) .getForObject("/rest/api/example", Void.class);
Not working!
Hi Kavya,
you can try
AtlassianHostUser.builder(host) instead of new AtlassianHostUserBuilder(host)
Thanks,
Artem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.