← Back to Extensions domain
Extensions.getStorageItems
Gets data from extension storage in the given `storageArea`. If `keys` is
specified, these are used to filter the result.
Domain: Extensions
experimental
Parameters
| Name | Type | Description |
id | string | ID of extension. |
storageArea | StorageArea | StorageArea to retrieve data from. |
keys (optional) | array | Keys to retrieve. |
Returns
| Name | Type | Description |
data | object | |
Example Request
{
"id": 1,
"method": "Extensions.getStorageItems",
"params": {
"id": "id-value",
"storageArea": "storageArea-value"
}
}
Example Response
{
"id": 1,
"result": {
"data": "base64-encoded-data..."
}
}
Usage in Node.js
const result = await send('Extensions.getStorageItems', {"id": "id-value", "storageArea": "storageArea-value"});
console.log(result);
// {"data": "base64-encoded-data..."}