How to Construct an Image URL
Constructing an Image URL
- https://
- The domain used for the API request i.e. uk.farnell.com
- Append the static text ‘/productimages/standard’
- Then based on the vrntPath value append the locale following these rules -
- If vrntPath is ‘nio/’ add ‘en_US’ to path
- Else if vrntPath is ‘farnell/’ take one of the following approaches –
i. You could use our fall back language default across all domains and set the locale as ‘en_GB’, but note if the customer is on any Store that doesn’t use English as a first language then the image names themselves may have local language elements in them and hence you should use a locale code appropriate to the primary transactional language
- Then append the baseName i.e the filename
So by example you could end up with these : https://uk.farnell.com/productimages/standard/en_GB/GE20TSSOP-40.jpg
Or https://fr.farnell.com/productimages/standard/fr_FR/GE20TSSOP-40.jpg
.