Node-red-contrib-google path parameters


I try to make a connection to my google cloud with node-red-contrib-google but can't find out how to pass path parameter

in postman I can call (with OAuth 2)

In Node-red I configured the node with

  • Connection: Google Client JSON file
  • API: Dialogflow:v2
  • Operation: projects.getAgent

The docu says
"Params for call are passed via msg.payload"

The API Reference one parameter "parent":
Googel API projects.getAgent

So I defined the msg.payload to

    "parent": "MyProjectID"

With this configuration I get an error:

TypeError: google[] is not a function    at GoogleNode._inputCallback (/home/vcap/app/.node-red/node_modules/node-red-contrib-google/google.js:123:35)    at GoogleNode.Node._emitInput (/home/vcap/deps/0/node_modules/@node-red/runtime/lib/nodes/Node.js:199:18)    at Immediate._onImmediate (/home/vcap/deps/0/node_modules/@node-red/runtime/lib/nodes/Node.js:179:33)    at runCallback (timers.js:705:18)    at tryOnImmediate (timers.js:676:5)    at processImmediate (timers.js:658:5)

Any idea how I pass a url parameter to the node?


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.