new ProductImage(apiKey, baseUrl, product, token)
Represents a single product image.
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string | Your api key. |
baseUrl |
sting | Base url for the api. |
product |
string | The product CNK-code. |
token |
string | The image exchange token that uniquely identifies the image. |
- Source:
Methods
-
<static> getUrl(size) → {string}
-
Returns the url for this image at the specified dimensions.
Parameters:
Name Type Description size
farmaframe.IMAGE_SIZES Preferred dimensions of the image. - Source:
Returns:
The url to an image.- Type
- string