openreplay/ee/api/chalicelib/core/sessions_mobs.py
KRAIEM Taha Yassine 37dd7067c6 Changes:
- changed sentry tags
- changed asayer_session_id to openReplaySessionToken
- EE full merge
2021-05-20 20:25:20 +02:00

26 lines
571 B
Python

from chalicelib.utils import helper
from chalicelib.utils.helper import environ
from chalicelib.utils.s3 import client
def get_web(sessionId):
return client.generate_presigned_url(
'get_object',
Params={
'Bucket': environ["sessions_bucket"],
'Key': sessionId
},
ExpiresIn=100000
)
def get_ios(sessionId):
return client.generate_presigned_url(
'get_object',
Params={
'Bucket': environ["ios_bucket"],
'Key': sessionId
},
ExpiresIn=100000
)