GET products/images?token={token}&count={count}&session={session}&options={options}
Loading product images - Returns added/modified images from the specified token Based on the options, returns the image in binary base64 (Default) or a URL for downloading (Options=URL) Options: URL: To return the downlowding links.
Request
URL parameters
Name | Description | Type | Additionnal Information | Intro version |
---|---|---|---|---|
token | Token of last successful loading | bigint | ||
count | Maximum number of accounts to return | integer | Default value: 100 Value between 1 and 500 | |
session | Session identification (must be unique for the active session) | string | Length between 0 and 100 | |
options | Options for custom processing | string | Length between 0 and 100 |
Response
ImagesResultName | Description | Type | Additionnal Information | Intro version |
---|---|---|---|---|
product | Product structure | Collection of ProductImage | ||
token | Token of this result's last entry. This token can be passed the next time you call this API to get the rest of the modified data | string | ||
count | Number of entries in this lot | integer | ||
queuecount | Number of remaining prices to recover | integer | ||
returncode | Return code: 0 for success | integer | ||
returnmsg | Return message | string | ||
warnings | Warnings (the instruction worked but you need to pay attention to warnings. May cause partial data loss (Truncation)) | Collection of string | ||
version | API version | string |
Return format
application/json, text/json, application/x-www-form-urlencoded
Sample:
{ "product": [ { "product_id": 1, "imagesURL": [ { "sequence": 1, "imagefilename": "sample string 2", "imageURL": "sample string 3" }, { "sequence": 1, "imagefilename": "sample string 2", "imageURL": "sample string 3" } ], "images": { "image": [ { "sequence": 1, "imagefilename": "sample string 2", "binaryimage": "sample string 3" }, { "sequence": 1, "imagefilename": "sample string 2", "binaryimage": "sample string 3" } ] } }, { "product_id": 1, "imagesURL": [ { "sequence": 1, "imagefilename": "sample string 2", "imageURL": "sample string 3" }, { "sequence": 1, "imagefilename": "sample string 2", "imageURL": "sample string 3" } ], "images": { "image": [ { "sequence": 1, "imagefilename": "sample string 2", "binaryimage": "sample string 3" }, { "sequence": 1, "imagefilename": "sample string 2", "binaryimage": "sample string 3" } ] } } ], "token": "sample string 1", "count": 2, "queuecount": 3, "returncode": 4, "returnmsg": "sample string 5", "warnings": [ "sample string 1", "sample string 2" ], "version": "sample string 6" }
application/xml, text/xml
Sample:
<result returncode="4" returnmsg="sample string 5" version="sample string 6" token="sample string 1" count="2" queuecount="3"> <warnings>sample string 1</warnings> <warnings>sample string 2</warnings> <product product_id="1"> <imagesURL sequence="1" imagefilename="sample string 2" imageURL="sample string 3" /> <imagesURL sequence="1" imagefilename="sample string 2" imageURL="sample string 3" /> <images> <image sequence="1" imagefilename="sample string 2" binaryimage="sample string 3" /> <image sequence="1" imagefilename="sample string 2" binaryimage="sample string 3" /> </images> </product> <product product_id="1"> <imagesURL sequence="1" imagefilename="sample string 2" imageURL="sample string 3" /> <imagesURL sequence="1" imagefilename="sample string 2" imageURL="sample string 3" /> <images> <image sequence="1" imagefilename="sample string 2" binaryimage="sample string 3" /> <image sequence="1" imagefilename="sample string 2" binaryimage="sample string 3" /> </images> </product> </result>