public function read($file, $rev=NUll, $type='sandbox')
	{
		$url = 'https://api-content.dropbox.com/1/files/';
		$params = array();
		if ($rev) $params['rev'] = $rev;
		$result = $this->doOAuthCall($url,'GET',$params, $type, $file);
		// if file not found, response is json, otherwise just file contents
		if(!in_array('HTTP/1.1 404 Not Found', $result['headers']))
			return $result['body'];
		else {
			$result_body = json_decode($result['body'], true);
			trigger_error(sprintf(self::E_APIERROR, $result_body['error']));
			return false;
		}
	}