def _build_url(self, resource, **kwargs):
        # type: (str, **str) -> str
        """Build the correct API url."""
        return urljoin(self.api_root, API_PATH[resource].format(**kwargs))
def _build_url ( self , resource , ** kwargs ) : return urljoin ( self . api_root , API_PATH [ resource ] . format ( ** kwargs ) )
Build the correct API url.