add DeleteToot
This commit is contained in:
parent
7ced22d42e
commit
82f7536210
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue