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:
- Source:
no :string
Type:
- Source:
thumbnail_url :string
Type:
- Source:
type :string
Type:
- 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: