getProductMedia

Method returns product media and attachments for selected product

Usage URL: https://hedo-pets.com/api/getProductMedia.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • id | required

    integer

    Internal identifier of product.

  • lang

    string

    Language of result. ISO 2 Letter Language Codes ie

    Example: en, pl, cs

  • name

    string

    File name

  • created

    string

    When media was created

  • src

    string

    Access URL to file

  • ext

    string

    File extension

  • size

    integer

    File size in kB

  • fkproduct

    integer

    Internal identifier of product

Example URL: https://hedo-pets.com/api/getProductMedia.json?key=YOURAPIKEY&lang=en&id=45356

[
    {
        "name": "Folia klej\u0105ca klapki baterii Samsung SM-G930F Galaxy S7 (oryginalna)",
        "src": "https://core.hedo-pets.com\/image.php?name=e5cfb50dfbff4842983dd5be73fafbf6.png",
        "ext": "png",
        "size": 369619
    }
]
Example URL: https://hedo-pets.com/api/getProductMedia.xml?key=YOURAPIKEY&lang=en&id=45356

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<name>Folia klejÄ…ca klapki baterii Samsung SM-G930F Galaxy S7 (oryginalna)</name>
		<src>https://core.hedo-pets.com/image.php?name=e5cfb50dfbff4842983dd5be73fafbf6.png</src>
		<ext>png</ext>
		<size>369619</size>
	</item>
</root>