mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Delete Gist
Add ability to delete gist with test cases.
This commit is contained in:
committed by
Marius Ungureanu
parent
f644376d52
commit
c82498a439
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user