Delete Gist

Add ability to delete gist with test cases.
This commit is contained in:
Robert Mills
2013-12-02 20:08:30 -05:00
committed by Marius Ungureanu
parent f644376d52
commit c82498a439
3 changed files with 49 additions and 0 deletions

View File

@@ -63,5 +63,19 @@ namespace Octokit
return ApiConnection.Post<Gist>(ApiUrls.Gist(), gist);
}
/// <summary>
/// Deletes a gist
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/gists/#delete-a-gist
/// </remarks>
/// <param name="id">The id of the gist</param>
public Task Delete(string id)
{
Ensure.ArgumentNotNull(id, "id");
return ApiConnection.Delete(ApiUrls.Gist(id));
}
}
}