gh_repos_get_by_path: Get archive link.

Description Usage Arguments Details

Description

This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly.

Usage

1
gh_repos_get_by_path(owner, repo, archive_format, path, ...)

Arguments

owner

Name of repository owner.

repo

Name of repository.

archive_format

archive_format

path

Valid Git reference, defaults to 'master'.

...

Additional parameters to pass to gh. See details.

Details

Additional parameters that can be passed:

type

It takes values in: all, public, private, forks, sources, member. The default is: all

Accept

Is used to set specified media type.


ramnathv/gh3 documentation built on May 7, 2019, 12:53 a.m.