Add a delete brand image action on the APIv4 (#9552)

Этот коммит содержится в:
Julien Levesy
2018-10-15 16:46:26 +02:00
коммит произвёл George Goldberg
родитель 160d278592
Коммит 43bdbb0c3a
4 изменённых файлов: 68 добавлений и 0 удалений

Просмотреть файл

@@ -2997,6 +2997,16 @@ func (c *Client4) GetBrandImage() ([]byte, *Response) {
}
}
func (c *Client4) DeleteBrandImage() *Response {
r, err := c.DoApiDelete(c.GetBrandRoute() + "/image")
if err != nil {
return BuildErrorResponse(r, err)
}
return BuildResponse(r)
}
// UploadBrandImage sets the brand image for the system.
func (c *Client4) UploadBrandImage(data []byte) (bool, *Response) {
body := &bytes.Buffer{}