add DeleteToot

This commit is contained in:
Yasuhiro Matsumoto 2017-04-15 21:07:11 +09:00
parent 7ced22d42e
commit 82f7536210
2 changed files with 6 additions and 1 deletions

View file

@ -122,3 +122,8 @@ func (c *Client) PostStatus(toot *Toot) (*Status, error) {
}
return &status, nil
}
// DeleteStatus delete the toot.
func (c *Client) DeleteStatus(id int64) error {
return c.doAPI(http.MethodDelete, fmt.Sprintf("/api/v1/statuses/%d", id), nil, nil)
}