vklancer/api.py
def get_url(self, method=None, **kwargs):
        """Return url for call method.

        :param method (optional): `str` method name.
        :returns: `str` URL.
        """
        kwargs.setdefault('v', self.__version)

        if self.__token is not None:
            kwargs.setdefault('access_token', self.__token)

        return 'https://api.vk.com/method/{}?{}'.format(
            method or self.__method, urlencode(kwargs)
        )
def get_url(self, method=None, **kwargs):
        """Return url for call method.

        :param method (optional): `str` method name.
        :returns: `str` URL.
        """
        kwargs.setdefault('v', self.__version)

        if self.__token is not None:
            kwargs.setdefault('access_token', self.__token)

        return 'https://api.vk.com/method/{}?{}'.format(
            method or self.__method, urlencode(kwargs)
        )
Return url for call method.

        :param method (optional): `str` method name.
        :returns: `str` URL.