String my_app_key = "test1234";
String my_app_secret = "test567";
String client_app_key = "cltest123";
String client_app_secret = "cltest456";
DbxAppInfo appInfo = new DbxAppInfo(my_app_key, my_app_secret);
DbxOAuth1AccessToken oauth1AccessToken =
new DbxOAuth1AccessToken(client_app_key, client_app_secret);
DbxRequestConfig requestConfig = new DbxRequestConfig("myappname");
DbxOAuth1Upgrader upgrader = new DbxOAuth1Upgrader(requestConfig, appInfo);
String s = upgrader.createOAuth2AccessToken(oauth1AccessToken);
System.out.println("s====== " + s);
This is my code to fetch accesstoken key from V1.I am getting error of
"unexpected HTTP status code: 403: {"error": "Access token does not belong to this app."}"
Please help me out.