(self, resource_slug)
get details for a resource corresponding to a lang

        :param resource_slug: resource slug
get details for a resource corresponding to a lang
get details for a resource corresponding to a lang
def _resource_details(self, resource_slug):
        """
        get details for a resource corresponding to a lang

        :param resource_slug: resource slug
        """
        url = "https://www.transifex.com/api/2/project/{}/resource/{}/stats/".format(
            self.project, resource_slug)
        response = requests.get(url, auth=self._auth)
        if response.status_code == 200:
            return response.json()
        elif response.status_code == 404:
            raise ResourceMissing("Resource {} not found".format(resource_slug))
        raise Exception(response.content)
def _resource_details ( self , resource_slug ) : url = "https://www.transifex.com/api/2/project/{}/resource/{}/stats/" . format ( self . project , resource_slug ) response = requests . get ( url , auth = self . _auth ) if response . status_code == 200 : return response . json ( ) elif response . status_code == 404 : raise ResourceMissing ( "Resource {} not found" . format ( resource_slug ) ) raise Exception ( response . content )