Demo entry 1467133

get access token from Dropbox

   

Submitted by getAccess on Mar 06, 2015 at 21:51
Language: Java. Code size: 555 Bytes.

DbxRequestConfig config = new DbxRequestConfig(APP_NAME, Locale.getDefault().toString());
DbxAppInfo appInfo = new DbxAppInfo(APP_KEY, APP_SECRET);
DbxWebAuthNoRedirect webAuth = new DbxWebAuthNoRedirect(config, appInfo);
String authorizeUrl = webAuth.start(); // URL to be opened in the browser
DbxAuthFinish authFinish = webAuth.finish(code); // code returned by Dropbox after successfully authentication by the user
string accessToken = authFinish.accessToken; // the token that allows Storekeeper to later perform operations on behalf of the user

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).