Question

how to pass query params in get call in zapier?

  • 21 January 2021
  • 2 replies
  • 966 views

Userlevel 1

const performCreate = async (z, bundle) => {

  const response = await z.request({

    method: 'GET',

    url: 'https://api.getblueshift.com/api/v1/campaigns.json',

    qs: {

      end_time: bundle.inputData.end_time,

      start_time: bundle.inputData.start_time,

      tag_data: bundle.inputData.tag_data,

      status: bundle.inputData.status// json by default

    }

 

 

is this right way?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +10

@ikbelkirasan should be able to help here.

Userlevel 7
Badge +12

Hi @pushkar123 - Query params can be put in params instead of qs.