Hi !
I write a code that generate Access Token. It is in JSON format but I extract only Access token and that Access token I used to make Client and call Method.
Here I get access token by using this method
accessToken1 = getAccess(); // Here I got Access Token, getAccess() give only access token in string formate
System.out.println(accessToken1) // It print Access Token
Now I make a client
DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/java-tutorial").build();
DbxClientV2 dbxClientV2 = new DbxClientV2(config, accessToken1);and call method and print
try {
System.out.println("running");
System.out.println(dbxClientV2.users().getCurrentAccount());
} catch (UnsupportedOperationException uoe) {
System.err.println("getCurrentAccount method not implemented: " + uoe.getMessage());
// Handle or log the exception as needed
} catch (DbxApiException e) {
throw new RuntimeException(e);
} catch (DbxException e) {
throw new RuntimeException(e);
}I got the output:
sl.Br4aZv3A4hhBNSSTZfPXQ6OrqJiqcbpQWW0FA3h1THML4DI0jT564fKrl7wvybXXt2sPYDs-C_N9dZoGotrvHCr3m7HZNEYQ86M_pgTUNem5-YN888QkTqLNgarWSDEnijjSb8-Qz6FA2LNHOQU8g5U
running
getCurrentAccount method not implemented: Method not implemented.
Means Access token print and then client generated enter to execute try block "running" (For debugging) is printed but when try to execute method then through error: getCurrentAccount method not implemented: Method not implemented.
How I resolve this problem. I try to change dependencies but it not working.