Skip to content

Commit

Permalink
Ooh, so I needed that one 🙈
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn committed Apr 22, 2015
1 parent b24e752 commit e3b1791
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Octokit/Clients/IRepositoryContentsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ public interface IRepositoryContentsClient
/// <returns></returns>
Task<string> GetArchiveLink(string owner, string name);

/// <summary>
/// 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.
/// </summary>
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
/// <returns></returns>
Task<string> GetArchiveLink(string owner, string name, ArchiveFormat archiveFormat);

/// <summary>
/// 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
Expand Down

0 comments on commit e3b1791

Please sign in to comment.