Export
@df1228
code:
data:privatelast updated:4 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 1,000,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.
send_http_request
Make an HTTP or webhook request and return the response as a step export.
params
URL
 
string ·params.url
Optional
code
async params => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
}
16
if (!params.auth) params.auth = {}
const config = {
  method: params.method,
  url: params.url,
  params: params.query,
  headers: params.headers,
  auth: {
    username: params.auth.username,
    password: params.auth.password,
  },
  responseType: params.responseType,
  data: params.data,
}
return await require("@pipedreamhq/platform").axios(this, config)
steps.
send_http_request_2
Make an HTTP or webhook request and return the response as a step export.
params
URL
 
string ·params.url
Optional
code
async params => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
}
16
if (!params.auth) params.auth = {}
const config = {
  method: params.method,
  url: params.url,
  params: params.query,
  headers: params.headers,
  auth: {
    username: params.auth.username,
    password: params.auth.password,
  },
  responseType: params.responseType,
  data: params.data,
}
return await require("@pipedreamhq/platform").axios(this, config)
steps.
sql
Pipedream automatically generates a table and schema based on the event shape.
params
Table Name

Enter the name of the table (e.g., my_table_name) to load the payload data into. Pipedream's SQL service automatically creates the table and adapts the schema to your data.

 
string ·params.table
Payload

Enter a reference to the data (for example, event.body or steps.step_name.return_value) you'd like to insert into the table. Pipedream’s SQL service automatically converts the data to JSON and maps the table schema to its keys.

 
string ·params.payload
code
async params => {
1
2
3
4
5
}
6
  $send.sql({
    table: params.table,
    payload: params.payload,
  })