I want to use twilio functions & Sync by Runtime Client.
I made function below and got error
exports.handler = function(context, event, callback) {
let sync = Runtime.getSync();
sync.lists('list_keys').syncListItems.get(0).then(function(response){
console.log(response);
callback(null);
});
Error
{
message: 'sync.lists(...).syncListItems.get(...).then is not a function',
name: 'TypeError',
stack: 'TypeError: sync.lists(...).syncListItems.get(...).then is not a function
}
when I use all methods remove, get, fetch, I still get the same errors.
How to get key from syncListItems
with Runtime client?