diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/client.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/model/client.go b/model/client.go index 5aac09289..204d08e69 100644 --- a/model/client.go +++ b/model/client.go @@ -347,6 +347,15 @@ func (c *Client) GetLogs() (*Result, *AppError) { } } +func (c *Client) GetClientProperties() (*Result, *AppError) { + if r, err := c.DoGet("/admin/client_props", "", ""); err != nil { + return nil, err + } else { + return &Result{r.Header.Get(HEADER_REQUEST_ID), + r.Header.Get(HEADER_ETAG_SERVER), MapFromJson(r.Body)}, nil + } +} + func (c *Client) CreateChannel(channel *Channel) (*Result, *AppError) { if r, err := c.DoPost("/channels/create", channel.ToJson()); err != nil { return nil, err |