diff --git a/lib/alexa-remote-ext.js b/lib/alexa-remote-ext.js index d58396e..ea31c42 100644 --- a/lib/alexa-remote-ext.js +++ b/lib/alexa-remote-ext.js @@ -82,6 +82,7 @@ class AlexaRemoteExt extends AlexaRemote { 'getAutomationRoutines', 'getMusicProviders', 'getActivities', + 'getCustomerHistoryRecords', 'getHomeGroup', 'getCards', 'sendTextMessage', diff --git a/nodes/alexa-remote-other.html b/nodes/alexa-remote-other.html index 64952b4..00fb2cf 100644 --- a/nodes/alexa-remote-other.html +++ b/nodes/alexa-remote-other.html @@ -842,7 +842,7 @@

References

'notifications', // getNotifications([cached]) 'automationRoutines', // getAutomationRoutines([limit]) 'musicProviders', // getMusicProviders([limit]) - 'activities', // getActivities({size, offset}) + 'activities', // getCustomerHistoryRecords({size, offset}) 'list', // getList(listType[, options]) 'homeGroup', // getHomeGroup() 'cards', // getCards([limit][, beforeCreationTime]) diff --git a/nodes/alexa-remote-other.js b/nodes/alexa-remote-other.js index b8c0e90..c0f80f7 100644 --- a/nodes/alexa-remote-other.js +++ b/nodes/alexa-remote-other.js @@ -38,7 +38,7 @@ module.exports = function (RED) { case 'activities': if(!tools.matches(value, { count: 10, offset: 1 })) return error(`invalid input: "${JSON.stringify(config)}"`); - return alexa.getActivitiesPromise({ size: value.count, offset: value.offset }).then(send).catch(error); + return alexa.getCustomerHistoryRecordsPromise({ size: value.count, offset: value.offset }).then(send).catch(error); case 'cards': if(!tools.matches(value, { count: 10 })) return error(`invalid input: "${JSON.stringify(config)}"`);