Getting started with Ephemeral Exchange for push notification

What is Ephemeral Exchange

efx is a cross platform cache, based on Firestore, that can be used to exchange data between unconnected platforms. It has push notification, which means that co-operating processes can be informed when something interesting happens. This is the mechanism you'll use to have the Sheets UI notify your add-on when there's a change.

Access keys - writer, reader and update keys allow writing and reading of data items in the store. The reader and updater keys are meant to be shared with collaborators.

Item keys - these are keys associated with a data item. To be able to read a data item you need to have an access key that has been allowed to access it.

Getting started with Ephemeral exchange

Ephemeral exchange uses a system of expiring keys to provide access to cached data. To register, just sign in to https://efxapi.com using your Google credentials - that will automatically create an account for you.

Next add a boss key and copy it - this is what you'll use to control access to the store

Storing the boss key

Best to store that in your property store of your script.

Library

To standardize and tailor access for Sheets push notification, you can use this library, cSheetEfx which contains all you'll need.

1X33G3XxC-ulHVaS1gDTsqT3g3-BQ_YaWk1_jhOe-UhZwAo_n40IdW1S1

Making keys

In addition to the boss key, you'll need access keys. You can create them using the API yourself, but the cSheetEfx can do it for you. Here's how to create them and store them in a property store.