interface for the avocado api in node.js