I am currently trying to configure the discovery api using the https://github.com/pckhib/node-red-contrib-google-oauth2 node.
Everything is working just fine, until I try to use the Dynamic (msg.operation) functionality. I am trying to work out how to configure it correctly to pass the methods to the node:
List, which is this:
And getRest, which ends up like this:
From the documentation, it is unclear whether I need to pass the operation parameter into msg.google.operation or msg.operation. But I think it is msg.operation. An even if it is msg.operation, I can't seem to get it to work...
I thought perhaps it should simply be passing a string, so tried this in a function with no luck...
msg.operation ="apis"; }; return msg;
Also tried many other variants...
The main error that is being returned is:
TypeError: operation is not a function which presumably means that the node is not correctly receiving the methods in the way in which it expects.
Any clues would be gratefully received.