Methods
- productsImagesSettings Object
- productsImages Array<Object>
- productIdent Object
- shopId Integer
- otherShopsForPic Array<Integer>
- productImages Array<Object>
- productIcons Array<Object>
- productImagesSettings Object
- productId value: number|string
- addImage source: string, priority: number|string
- base64
Examples
This function sets the product images source type to URL, applies a macro, and specifies the product identification and images.
Loading editor...
const result = await idosellRequest.putProductsImages
.productsImagesSettings({
"productsImagesSourceType":"url",
"productsImagesApplyMacro":true})
.productIdent({
"identValue":"33",
"productIdentType":"id"
})
.productImages([{
"productImageSource":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png",
"productImageNumber":7
}])
.exec();This function sets the product image to product with ID 31 and default settings: apply macro, url as source and image number 1. Setting image number is optional.
Loading editor...
const result = await idosellRequest.putProductsImages
.productId(31)
.addImage("https://www.idosell.com/panel/file-gate.php?id=279794&ext=.webp")
.exec();This function adds multiple product images to product with ID 31 and default settings: apply macro and url as source. Image number for the first picture is set to 4, while next images are automatically set to subsequent numbers.
Loading editor...
const result = await idosellRequest.putProductsImages
.productId(31)
.addImage("https://www.idosell.com/panel/file-gate.php?id=279792&ext=.webp", 4)
.addImage("https://www.idosell.com/panel/file-gate.php?id=279793&ext=.webp")
.exec();This function sets the shop icon to product with ID 31 with default settings: source type to URL and applies a macro.
Loading editor...
const result = await idosellRequest.putProductsImages
.productId(31)
.shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png")
.exec();This function sets all product icons to product with ID 31 with default settings: source type to URL and applies a macro.
Loading editor...
const result = await idosellRequest.putProductsImages
.productId(31)
.shopIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png")
.auctionIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png")
.groupIcon("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png")
.exec();