• Register

How to Construct an Image URL

Constructing an Image URL

  1. https://
  2. The domain used for the API request  i.e. uk.farnell.com
  3. Append the static text ‘/productimages/standard’
  4. Then based on the vrntPath value append the locale following these rules -
    1. If vrntPath is ‘nio/’ add ‘en_US’ to path
    2. 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

  1. 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

.