def get_contents(self, user, repo, path, callback=None, ref=None, **kwargs):
        """Make contents API request - either file contents or directory listing"""
        path = u'repos/{user}/{repo}/contents/{path}'.format(**locals())
        if ref is not None:
            params = kwargs.setdefault('params', {})
            params['ref'] = ref
        return self.github_api_request(path, callback, **kwargs)
dataset/ETHPy150Open jupyter/nbviewer/nbviewer/providers/github/client.py/AsyncGitHubClient.get_contents/original