StickerPayload
StickerPayload
Section titled “StickerPayload”Represents a sticker payload.
Kind: global class
- StickerPayload
- .create(payload) ⇒
Promise.<Object> - .resolveData([data]) ⇒
Object
- .create(payload) ⇒
StickerPayload.create(payload) ⇒ Promise.<Object>
Section titled “StickerPayload.create(payload) ⇒ Promise.<Object>”Creates a payload for an API request.
Kind: static method of StickerPayload
Returns: Promise.<Object> - - The created payload.
| Param | Type | Description |
|---|---|---|
| payload | Object | The payload object. |
StickerPayload.resolveData([data]) ⇒ Object
Section titled “StickerPayload.resolveData([data]) ⇒ Object”Resolves the data object by validating and formatting its properties.
Kind: static method of StickerPayload
Returns: Object - - The resolved data object with validated and formatted properties.
Throws:
RangeError- If the name property is not between 2 and 30 characters.RangeError- If the description property is not between 2 and 100 characters.RangeError- If the tags property is longer than 200 characters.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object to resolve. |