Ejemplo n.º 1
0
    def redirect_to_lastfm(self):
        client = AsyncLastfmClient(
            api_key=settings.API_KEY,
            api_secret=settings.API_SECRET,
        )

        auth_url = client.get_auth_url(
            callback_url='%s://%s/' %
            (self.request.protocol, self.request.host))

        self.redirect(auth_url)
Ejemplo n.º 2
0
    def redirect_to_lastfm(self):
        client = AsyncLastfmClient(
            api_key=settings.API_KEY,
            api_secret=settings.API_SECRET,
        )

        auth_url = client.get_auth_url(callback_url='%s://%s/' % (
            self.request.protocol,
            self.request.host
        ))

        self.redirect(auth_url)