Get Item
Retrieves, decrypts and returns an item from its item ID. If an item does not exist at that ID, it will return an emptybytes object.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | int | Item ID to retrieve & decrypt |
Returns
bytes: Decrypted item bytes, or empty bytes object if no item was found at the ID provided.
Exceptions
ValueError
ValueError
- Throws if the item could not be retrieved or decrypted.
Example Usage
Get Items
Retrieves, decrypts and returns a list of items from their IDs. If an item does not exist at that ID, it will return an emptybytes object.
Parameters
| Parameter | Type | Description |
|---|---|---|
ids | List[int] | Item IDs to retrieve & decrypt |
Returns
List[bytes]: List of decrypted item bytes, or empty bytes object if no item was found at the ID provided.
Exceptions
ValueError
ValueError
- Throws if the item could not be retrieved or decrypted.