From 0efac3ca2f772d03a6c50fac41927a6aa77a7532 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Fri, 20 Oct 2023 12:07:20 +0200 Subject: [PATCH] feat: aded get_restreamers --- src/compress/compress.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/compress/compress.py b/src/compress/compress.py index 40ab0a2..2ae6065 100644 --- a/src/compress/compress.py +++ b/src/compress/compress.py @@ -171,4 +171,22 @@ def upload_with_encoding( self, destination_folder : str, file, title : str, tag }) ) # + #/** + # * + # * @param {number} start_from + # * @param {number} amount + # * @returns restreamer list + # */ + def get_restreamers(start_from :int, amount :int): + return self.req.post(TNGRM_BASE_URL + CREATE_UPLOAD, + 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) + }) + ) # \ No newline at end of file