private function __getPath($type, $params = array())
    {
        switch ($type) {
            case 'root':
                return '/';
            case 'account':
                return '/account/';
            case 'file_list':
                return '/files/' . $this->__getQueryString($params, '?');
            case 'file_storage':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/files/%s/storage/', $params['uuid']);
            case 'file_copy':
                return '/files/';
            case 'files_storage':
                return '/files/storage/';
            case 'file':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/files/%s/', $params['uuid']);
            case 'group_list':
                return '/groups/' . $this->__getQueryString($params, '?');
            case 'group':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/groups/%s/', $params['uuid']);
            case 'group_storage':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/groups/%s/storage/', $params['uuid']);
            default:
                throw new \Exception('No api url type is provided for request "' . $type . '". Use store, or appropriate constants.');
        }
    }
private function __getPath($type, $params = array())
    {
        switch ($type) {
            case 'root':
                return '/';
            case 'account':
                return '/account/';
            case 'file_list':
                return '/files/' . $this->__getQueryString($params, '?');
            case 'file_storage':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/files/%s/storage/', $params['uuid']);
            case 'file_copy':
                return '/files/';
            case 'files_storage':
                return '/files/storage/';
            case 'file':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/files/%s/', $params['uuid']);
            case 'group_list':
                return '/groups/' . $this->__getQueryString($params, '?');
            case 'group':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/groups/%s/', $params['uuid']);
            case 'group_storage':
                if (array_key_exists('uuid', $params) == false) {
                    throw new \Exception('Please provide "uuid" param for request');
                }
                return sprintf('/groups/%s/storage/', $params['uuid']);
            default:
                throw new \Exception('No api url type is provided for request "' . $type . '". Use store, or appropriate constants.');
        }
    }
Return path to send request to.
Throws Exception if wrong type is provided or parameters missing.

@param string $type Construct type.
@param array $params Additional parameters for requests as array.
@throws \Exception
@return string