skip to Main Content

WordPress – Grabbing image from URL

How do I grab an image from an amazon with a format like this: https://platform.s3.us-west-2.amazonaws.com/listing/31767-84007-dwBVIaLkhsGzpK4sfxaS-T07Gd-EXAd78l8lsJpeuYM-618cf68ce2350 I got this data from a Booking Engine API, and there's no other way to get a different result. I am using WordPress and "media_sideload_image"…

VIEW QUESTION

Amazon web services – Problem with aws expiration time for presigned url

I have created a function to get a link to download an object in S3. def get_presigned_url(s3_bucket, s3_object_key, expiration_seconds): url = boto3.client('s3', config=Config(signature_version='s3v4'), aws_access_key_id='access_key_id', aws_secret_access_key='secret_access_key').generate_presigned_url( ClientMethod='get_object', Params={'Bucket': s3_bucket, 'Key': s3_object_key}, ExpiresIn=expiration_seconds) return url It creates the link with the correct…

VIEW QUESTION
Back To Top
Search