# Node-red-contrib-google path parameters

**URL:** <https://discourse.nodered.org/t/node-red-contrib-google-path-parameters/35614>\
**Category:** General\
**Created:** [9 November 2020 16:19 UTC](https://discourse.nodered.org/t/node-red-contrib-google-path-parameters/35614 "2020-11-09T16:19:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank-LR](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@Frank-LR](https://discourse.nodered.org/u/Frank-LR)\
**Post date:** [9 November 2020 16:19 UTC](https://discourse.nodered.org/t/node-red-contrib-google-path-parameters/35614/1 "2020-11-09T16:19:10Z")

</div>

Hi,

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

example:  
in postman I can call (with OAuth 2)

```auto
https://dialogflow.googleapis.com/v2/projects/MyProjectID/agent

```

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](https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects/getAgent)

So I defined the msg.payload to

```auto
{
    "parent": "MyProjectID"
}

```

With this configuration I get an error:

```auto
TypeError: google[api.name] 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?

Frank

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 January 2021 16:19 UTC](https://discourse.nodered.org/t/node-red-contrib-google-path-parameters/35614/2 "2021-01-08T16:19:26Z")

</div>

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