Skip to content

Commit

Permalink
feat: added the response pushes and the app pushes endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxx committed Apr 12, 2023
1 parent 8387e20 commit 3a6b6df
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ovenmedia/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3a6b6df

Please sign in to comment.