Dynamic Display GHL Cal
@kenny1
code:
data:privatelast updated:2 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 800,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
post_request

Make an HTTP POST request to any URL. Optionally configure query string parameters, headers and basic auth.

configure

The URL you'd like to send the HTTP request to

 
Enter a value for URL

The body of the HTTP request. Enter a static value or reference prior step exports via the steps object (e.g., {{steps.foo.$return_value}}).

 
Enter a value for HTTP Body / Payload

Add individual query parameters as key-value pairs or disable structured mode to pass multiple key-value pairs as an object.

 
key
 
value

Add individual HTTP headers as key-value pairs or disable structured mode to pass multiple key-value pairs as an object.

 
key
 
value

To use HTTP basic authentication, enter a username and password separated by | (e.g., myUsername|myPassword).

 
Enter a value for Basic Auth
steps.
get_sheets
auth
to use OAuth tokens and API keys in code via theauths object
(auths.google_sheets)
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
}
19
import axios from "axios";

// Make an HTTP GET request using axios
const resp = await axios({
  method: "GET",
  url: `https://script.google.com/macros/s/AKfycbxHgN8bF08Ja4h0BNUNBCoumIjk_L2T2BQpsrL80-gsUJ1DcNsDVN-KtuA0OWYxZViX/exec`,
  params: {
    id:steps.post_request.$return_value.buyers[0].id
  }
});
// Retrieve just the data from the response
const { data } = resp;
await $respond({
  immediate: true,
  status: 302,
  headers: { "Location": data }
});