Search in sources :

Example 1 with WebAuthSession

use of com.dropbox.client2.session.WebAuthSession in project skype-bot by toomasr.

the class DropboxDirPluginFileRepository method initDropboxApi.

private void initDropboxApi() {
    AppKeyPair appKeys = new AppKeyPair(Configuration.getProperty("dropbox.appkey"), Configuration.getProperty("dropbox.appsecret"));
    WebAuthSession session = new WebAuthSession(appKeys, AccessType.DROPBOX, new AccessTokenPair(Configuration.getProperty("dropbox.token.key"), Configuration.getProperty("dropbox.token.secret")));
    api = new DropboxAPI<WebAuthSession>(session);
}
Also used : WebAuthSession(com.dropbox.client2.session.WebAuthSession) AccessTokenPair(com.dropbox.client2.session.AccessTokenPair) AppKeyPair(com.dropbox.client2.session.AppKeyPair)

Aggregations

AccessTokenPair (com.dropbox.client2.session.AccessTokenPair)1 AppKeyPair (com.dropbox.client2.session.AppKeyPair)1 WebAuthSession (com.dropbox.client2.session.WebAuthSession)1