context.getData('scope', 'visibility', 'key') - Retrieving addon data within a specific call context.
| argument | Type | Description |
|---|---|---|
| scope | string | Invocation context. Currently, only 'card' and 'user'. |
| visibility | string | One of - private or shared: private - data is saved only for the current user, other users won't see the data. shared - data is saved for all users and will be visible to any authorized user. note - only private is supported for user scope |
| key | string | The key of the desired value. |
Return value - Promise
await context.getData('card', 'private', 'timerLog')
await context.getData('user', 'private', 'info')