Hi
I have been trying to generate oauth 2 access token for my app (which was created using core api 1 in java), based on the documentation provided for migration but every time I tried it I got
{"error": "Invalid app key (consumer key). Check your app's configuration to make sure everything is correct."}.
I tried both the sdk approach as well as the http one but to no avail.I am stuck . Kindly need help to figure out where am I going wrong with this. Below code is the one I used to fetch oauth2.0 token. Here is the java approach I tried
DbxOAuth1Upgrader upgrader;
DbxOAuth1AccessToken oAuth1AccessToken;
DbxRequestConfig requestConfig = new DbxRequestConfig(appName);
DbxAppInfo appInfo = new DbxAppInfo(accessKey, secretKey);
upgrader = new DbxOAuth1Upgrader(requestConfig, appInfo);
oAuth1AccessToken = new DbxOAuth1AccessToken(accessKey, secretKey);
String newToken = upgrader.createOAuth2AccessToken(oAuth1AccessToken);
upgrader.disableOAuth1AccessToken(oAuth1AccessToken);
The same accesskey and secretKey are working fine with the coreAPI 1.