From 3a6b6dff7c9e854859c5f3eeef47c8209e948d5e Mon Sep 17 00:00:00 2001 From: Paxx Date: Wed, 12 Apr 2023 11:35:07 +0200 Subject: [PATCH] feat: added the response pushes and the app pushes endpoint --- ovenmedia/application.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ovenmedia/application.go b/ovenmedia/application.go index 395a7a9..7e4c6b6 100644 --- a/ovenmedia/application.go +++ b/ovenmedia/application.go @@ -20,17 +20,3 @@ func (o *ovenMedia) GetApplications(host string) (*ResponseVirtualList, error) { } return &obj, nil } - -func (o *ovenMedia) GetApplicationPushes(host string, application string) (*ResponsePushes, error) { - url := fmt.Sprintf("%s/%s/apps/%s", V1_HOSTS, host, application) - resp, err := o.restyPost(url, nil) - if err != nil { - return nil, err - } - - var obj ResponsePushes - if err := json.Unmarshal(resp.Body(), &obj); err != nil { - return nil, err - } - return &obj, nil -}