diff --git a/src/compress/compress.py b/src/compress/compress.py index fa0fb3f..043f9dc 100644 --- a/src/compress/compress.py +++ b/src/compress/compress.py @@ -383,4 +383,21 @@ def pull_start(self, restreamer_name : str, external_servers: object ): }) ) # + + + #/** + # * Need to call before upload s3 + # * + # * @returns customer_s3 + # */ + def get_zone(self, ): + return self.req.post(TNGRM_BASE_URL + GET_CUSTOMER_ZONE, + headers={ + "Content-Type": "application/json", + }, + body = json.dumps({ + "api_key": self.api_key, + "client_id": self.client_id, + }) + ) # \ No newline at end of file diff --git a/src/compress/constants.py b/src/compress/constants.py index dd383a0..6c581a4 100644 --- a/src/compress/constants.py +++ b/src/compress/constants.py @@ -45,4 +45,9 @@ S3_SPACE = GET_UPLOADS + "/s3_space" ADD_VIDEO_THUMB = GET_UPLOADS + "/add_thumb" SIGN_S3_URL = GET_UPLOADS + "/sign_s3_url" +# customers +GET_CUSTOMERS = "/external/customers/" +GET_CUSTOMER_ZONE = GET_CUSTOMERS +"/s3" +# credentials +GET_CREDENTIALS = "/external/credentials/" # \ No newline at end of file