Skip to content

Commit

Permalink
added get_zone
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 4, 2024
1 parent b907381 commit c79791b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/compress/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
)
#
5 changes: 5 additions & 0 deletions src/compress/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
#

0 comments on commit c79791b

Please sign in to comment.