Skip to content

Commit

Permalink
added get restreamers ott all
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 13, 2024
1 parent d6b88e6 commit 8386e1a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/compress/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,25 @@ def get_restreamers(self, start_from :int, amount :int):
#
#/**
# *
# * @param {number} start_from
# * @param {number} amount
# * @returns restreamer list
# */
def get_restreamers_ott_all(self, start_from :int, amount :int):
return self.req.post(TNGRM_BASE_URL + GET_RESTREAMERS_OTT_ALL,
headers={
"Content-Type": "application/json",
},
body = json.dumps({
"api_key": self.api_key,
"client_id": self.client_id,
"start_from": int(start_from),
"amount": int(amount)
})
)
#
#/**
# *
# * @returns restreamer object
# */
def get_restreamer(self, instance_name : str):
Expand Down
1 change: 1 addition & 0 deletions src/compress/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
CREATE_CATEGORY = GET_CATEGORIES + "/create"
# restreamer
GET_RESTREAMERS = "/external/restreamers"
GET_RESTREAMERS_OTT_ALL = GET_RESTREAMERS + "/ott_all"
GET_RUNNING_INSTANCES = GET_RESTREAMERS + "/running_instances"
GET_RUNNING_SINGLE_INSTANCE = GET_RESTREAMERS + "/single_instance"
SCALE_RESTREAMER = GET_RESTREAMERS + "/scale_instance"
Expand Down

0 comments on commit 8386e1a

Please sign in to comment.