Writing a request for node-red-contrib-google-oauth2


I'd like to use the node-red-contrib-google-oauth2 node to get Google analytics session from my GA account. I've associated the right credentials to the node and I'm authenticated successfully.

I'm trying to write a request to batchGet "ga:sessions" for specific "dateRanges" in a function node placed before the node-red-contrib-google-oauth node.

Screen Shot 2020-11-25 at 11.18.40 AM

However, I'm having difficulties passing over the request body to the GA node in order to get what I need (I can do it from my console no pb). I'm new at node-red and would love some guidance on how to build this flow.

Anyone has done this before?

Thank you,

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