I'm using the API to get list of products with parameters:
'Keywords' => 'search,
'Operation' => 'ItemSearch',
'SearchIndex' => 'All',
'AssociateTag' => 'my-tag',
'AWSAccessKeyId' => 'my-key-id',
'ResponseGroup' => 'Medium',
'Service' => 'AWSECommerceService',
'Timestamp' => gmdate('Y-m-d\TH:i:s\Z'),
'Version' => '2010-09-01',
I'm receiving images only from insecure server, e.g.
http://ecx.images-amazon.com/images/I/417YQ3xWx7L._SL75_.jpg
I have learned that this image is also available under the URL:
https://images-na.ssl-images-amazon.com/images/I/417YQ3xWx7L._SL75_.jpg
Can I make API to return the secure URL in the response?
I see this is an old question. Probably still actually.
You can replace the result url with simple str_replace.
$image-url = "http://ecx.images-amazon.com/images/I/417YQ3xWx7L._SL75_.jpg"
$new-image-url = str_replace('http://ecx.', 'https://images-na.ssl-', $image-url);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With