with Tapform and SFTP (key-based auth)?
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
The Tapform API furnishes a way to automate and integrate form data handling in Pipedream's serverless environment. With it, you can manipulate form submissions, manage user data, and connect forms to other services for complex workflows. This opens endless possibilities to streamline data collection processes, react in real-time to user submissions, and connect form data to more than 500+ apps available on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tapform: {
type: "app",
app: "tapform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apimvp.tapform.io/api/leads/zapier-leads`,
headers: {
"tapform-api-key": `${this.tapform.$auth.api_key}`,
},
})
},
})
The SFTP (key-based auth) app on Pipedream allows you to securely transfer and manage files over a network. It uses SSH for data transfer and provides the same level of security as SSH, without requiring password authentication, making automation workflows more secure and less prone to human error. You can automate file uploads, downloads, synchronization tasks, and efficiently manage your remote files in a serverless environment. Integrating this with other Pipedream-supported apps enables you to craft powerful and secure data flow systems.
module.exports = defineComponent({
props: {
sftp: {
type: "app",
app: "sftp",
}
},
async run({steps, $}) {
const Client = require('ssh2-sftp-client');
const {
host,
username,
privateKey,
} = this.sftp.$auth
const config = {
host,
username,
privateKey,
}
const sftp = new Client()
await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
},
})