Set supported API version

This commit is contained in:
Aleksander Machniak 2014-10-14 21:13:22 -04:00
parent 71f24efbdd
commit 538edd1707

View file

@ -29,6 +29,9 @@ class kolab_files_engine
private $timeout = 600;
private $sort_cols = array('name', 'mtime', 'size');
const API_VERSION = 2;
/**
* Class constructor
*/
@ -629,7 +632,7 @@ class kolab_files_engine
}
// Go with authenticate request
$url->setQueryVariables(array('method' => 'authenticate'));
$url->setQueryVariables(array('method' => 'authenticate', 'version' => self::API_VERSION));
$request->setUrl($url);
$request->setAuth($this->rc->user->get_username(), $this->rc->decrypt($_SESSION['password']));
$response = $request->send();