Class: ItemImage

ItemImage(data)

Represents an image for a specific color of a catalog item.

Constructor

new ItemImage(data)

Create an instance of Item Image
Parameters:
Name Type Description
data object The API response data
Properties
Name Type Attributes Default Description
color_id number <optional>
0 Color Id of the image.
thumbnail_url string <optional>
'' The Url of the thumbnail image.
type string <optional>
'' The type of catalog item as correspondeing to ItemType.
no string <optional>
'' The catalog item's identification number.
Source:

Classes

ItemImage

Members

color_id :number

Type:
  • number
Source:

no :string

Type:
  • string
Source:

thumbnail_url :string

Type:
  • string
Source:

type :string

Type:
  • string
Source:

Methods

(static) get(itemType, itemNumber, colorId)

Method to get an image of a catalog item. Usage: ``` var req = ItemImage.get(ItemType.Part, '3001', 0); client.send(req).then(image => console.log(image)); ```
Parameters:
Name Type Description
itemType string Catalog item type
itemNumber string Catalog item number
colorId number Catalog item's color id.
Source: