GetProductsPictures
Request Parameters:
Get product images for specified product ids. When product doesn't have image than PictureList not contain image and DefaultPictureModel contain default image.
URL: ../Api/Client/GetProductsPictures
Header:
Content-Type:application/json
Required Parameters : PorductIds, LanguageId, ThumbSize[Optional]
Case-1. Incorrect parameters :
Parameter:
{
"ApiSecretKey": "i99b98d117m116a112o98k115c111",
"LanguageId": "1",
"ProductIds": []
}
Response :
{
"Status": 2,
"Message": "Invalid parameters.",
"Data": null,
"ValidationMessage": [
"Provide product ids."
],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey": "i99b98d117m116a112o98k115c111",
"LanguageId": "1",
"ThumbSize":20,
"ProductIds": [35,36]
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": [
{
"ProductId": 35,
"DefaultPictureModel": {
"ImageUrl": "http://localhost:15536/images/thumbs/0001086_if-you-wait-donation_550.jpeg",
"ThumbImageUrl": null,
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0001086_if-you-wait-donation.jpeg",
"Title": "Picture of If You Wait (donation)",
"AlternateText": "Picture of If You Wait (donation)",
"Form": null,
"CustomProperties": {}
},
"PictureList": [
{
"ImageUrl": "http://localhost:15536/images/thumbs/0001086_if-you-wait-donation_100.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0001086_if-you-wait-donation_20.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0001086_if-you-wait-donation.jpeg",
"Title": "Picture of If You Wait (donation)",
"AlternateText": "Picture of If You Wait (donation)",
"Form": null,
"CustomProperties": {}
}
]
},
{
"ProductId": 36,
"DefaultPictureModel": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000067_science-faith_550.jpeg",
"ThumbImageUrl": null,
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000067_science-faith.jpeg",
"Title": "Picture of Science & Faith",
"AlternateText": "Picture of Science & Faith",
"Form": null,
"CustomProperties": {}
},
"PictureList": [
{
"ImageUrl": "http://localhost:15536/images/thumbs/0000067_science-faith_100.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000067_science-faith_20.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000067_science-faith.jpeg",
"Title": "Picture of Science & Faith",
"AlternateText": "Picture of Science & Faith",
"Form": null,
"CustomProperties": {}
}
]
}
],
"ValidationMessage": [],
"ErrorMessage": null
}