def construct_url(self):
        """Construct a full trakt request URI, with `params` and `query`."""
        path = [self.path]
        path.extend(self.params)

        # Build URL
        url = self.client.base_url + '/'.join(
            str(value) for value in path
            if value
        )

        # Append query parameters (if defined)
        query = self.encode_query(self.query)

        if query:
            url += '?' + query

        return url
def construct_url ( self ) : path = [ self . path ] path . extend ( self . params ) url = self . client . base_url + '/' . join ( str ( value ) for value in path if value ) query = self . encode_query ( self . query ) if query : url += '?' + query return url
Construct a full trakt request URI, with `params` and `query`.