Update Cache for 2019-nCoV Data Set
@pravin
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 800,000+ developers using the Pipedream platform
steps.
trigger
Cron Scheduler
Deploy to configure a custom schedule
This workflow runs on Pipedream's servers and is triggered on a custom schedule.
steps.
send_http_request
Send data to an HTTP destination.
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
17
18
19
20
21
22
23
24
}
25
const config = {
  method: params.method ||  "post",
  url: params.url,
}
for (const { key, value } of params.query || []) {
  if (!config.params) config.params = {}
  config.params[key] = value
}
for (const { key, value } of params.headers || []) {
  if (!config.headers) config.headers = {}
  config.headers[key] = value
}
if (params.auth) {
  config.auth = {
    username: params.auth.username,
    password: params.auth.password,
  }
}
if (params.responseType) {
  config.responseType = params.responseType
}
if (params.payload) config.data = params.payload
return await require("@pipedreamhq/platform").axios(this, config)