Fix active clients
This commit is contained in:
@@ -119,8 +119,8 @@ type ActiveClient struct {
|
|||||||
|
|
||||||
type ActiveClients []ActiveClient
|
type ActiveClients []ActiveClient
|
||||||
|
|
||||||
func (c *Client) ListActiveClients(ctx context.Context, site string) ([]APGroup, error) {
|
func (c *Client) ListActiveClients(ctx context.Context, site string) (ActiveClients, error) {
|
||||||
var respBody []APGroup
|
var respBody []ActiveClient
|
||||||
|
|
||||||
err := c.do(ctx, "GET", fmt.Sprintf("%s/site/%s/clients/active?includeUnifiDevices=true", c.apiV2Path, site), nil, &respBody)
|
err := c.do(ctx, "GET", fmt.Sprintf("%s/site/%s/clients/active?includeUnifiDevices=true", c.apiV2Path, site), nil, &respBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user