public function getContents(string $path = '', string $ref = AbstractApi::BRANCH_MASTER): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/contents/:path?:args',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $path,
            http_build_query(['ref' => $ref])));
    }