From 9ee9d4aad6645f6f8bbdcac15f8744a9a597d38b Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Sun, 22 Mar 2015 00:27:02 +1000 Subject: [PATCH] Ooh, so I needed that one :see_no_evil: --- Octokit/Clients/IRepositoryContentsClient.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Octokit/Clients/IRepositoryContentsClient.cs b/Octokit/Clients/IRepositoryContentsClient.cs index c9d1978f..45a217b0 100644 --- a/Octokit/Clients/IRepositoryContentsClient.cs +++ b/Octokit/Clients/IRepositoryContentsClient.cs @@ -59,6 +59,19 @@ namespace Octokit /// Task GetArchiveLink(string owner, string name); + /// + /// 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. + /// + /// https://developer.github.com/v3/repos/contents/#get-archive-link + /// The owner of the repository + /// The name of the repository + /// The format of the archive. Can be either tarball or zipball + /// + Task GetArchiveLink(string owner, string name, ArchiveFormat archiveFormat); + /// /// 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