public class DropboxSession {
private DropboxAPI<?> client;
public DropboxSession(String app_key, String app_secret, String key, String secret) {
AppKeyPair appKeyPair = new AppKeyPair(app_key, app_secret);
WebAuthSession session = new WebAuthSession(appKeyPair, WebAuthSession.AccessType.DROPBOX);
AccessTokenPair ac = new AccessTokenPair(key, secret);
session.setAccessTokenPair(ac);
client = new DropboxAPI<WebAuthSession>(session);
}