with SFTP (password-based auth) and RocketSkip?
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Send a property to get phone numbers for the property owner. See the documentation
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
SFTP on Pipedream enables secure file management on remote servers directly from your workflows. Utilize this app to automate file uploads, downloads, and synchronization tasks between your systems and SFTP servers. Implement robust data pipelines or deploy content to web servers without manual intervention, all while maintaining a high level of security with password-based authentication.
module.exports = defineComponent({
props: {
sftp_password_based_auth: {
type: "app",
app: "sftp_password_based_auth",
}
},
async run({steps, $}) {
const Client = require('ssh2-sftp-client');
const {
host,
username,
password,
} = this.sftp_password_based_auth.$auth
const config = {
host,
username,
password,
}
const sftp = new Client()
await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rocketskip: {
type: "app",
app: "rocketskip",
}
},
async run({steps, $}) {
const data = {
"first_name": `{{your_name}}`,
"last_name": `{{your_last_name}}`,
"street_address": `{{your_street_address}}`,
"city": `{{your_city}}`,
"state": `{{your_state}}`,
"zip_code": `{{your_zip_code}}`,
}
return await axios($, {
method: "post",
url: `https://api.rocketskip.com/api/v1/property/skiptrace`,
headers: {
Authorization: `Bearer ${this.rocketskip.$auth.oauth_access_token}`,
},
data,
})
},
})