private function getUrl($type, $key)
    {
        switch ($type) {
            case 'album':
                $url = 'album/%s/';
                break;
            case 'photo':
                $url = 'photo/%s/';
                break;
            case 'albumPhotos':
                $url = 'album/%s/photos/';
                break;
            case 'albums':
                $url = 'albums/';
                break;
            case 'tags':
                $url = 'tags/';
                break;
            case 'tag':
                $url = 'tag/%s/photos/';
                break;
            default:
                $url = '/';
        }

        return sprintf($url, $key);
    }