remove non existant API function

This commit is contained in:
Samuel Lorch 2021-09-16 14:18:38 +02:00
parent 940828965a
commit f6b82dcbe9

View file

@ -33,18 +33,3 @@ func (c *Client) GetResourcePermissions(ctx context.Context, resourceID string)
}
return permissions, nil
}
// GetFolderPermissions gets a Folders Permissions
func (c *Client) GetFolderPermissions(ctx context.Context, folderID string) ([]Permission, error) {
msg, err := c.DoCustomRequest(ctx, "GET", "/permissions/folder/"+folderID+".json", "v2", nil, nil)
if err != nil {
return nil, err
}
var permissions []Permission
err = json.Unmarshal(msg.Body, &permissions)
if err != nil {
return nil, err
}
return permissions, nil
}