public function __construct($appKey, $appSecret)
{
$this->appKey = $appKey;
$this->appSecret = $appSecret;
$this->f3 = \Base::instance();
$this->web = \Web::instance();
$this->web->engine('curl');
$this->authToken = $this->f3->get('SESSION.dropbox.authToken');
$this->authSecret = $this->f3->get('SESSION.dropbox.authSecret');
$this->reqParams = array('oauth_consumer_key' => $this->appKey, 'oauth_version' => '1.0', 'oauth_signature' => $this->appSecret . '&', 'oauth_signature_method' => 'PLAINTEXT', 'oauth_timestamp' => strftime("%a, %d %b %Y %H:%M:%S %Z", time()));
$this->authParams = $this->reqParams + array('oauth_token' => $this->authToken);
$this->authParams['oauth_signature'] .= $this->authSecret;
}