with SFTP (password-based auth) and CommPeak?
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Get account information such as balance and tariffs. See the documentation
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
Get results for a bulk lookup operation. See the documentation
Perform validation or lookup for a single phone number. See the documentation
Perform a bulk number lookup, to later fetch the results when the operation is finished. 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();
},
})
The CommPeak API offers a suite of telecommunication services, such as sending SMS messages, making voice calls, and managing phone numbers. In Pipedream, harnessing this API lets you automate communication processes, integrate telephony features into your workflows, and connect them with other apps for enhanced functionality. Think of orchestrating SMS notifications based on certain triggers or automating call logs syncing to a database. CommPeak's capabilities, when combined with Pipedream's serverless platform, can streamline complex communication tasks and create powerful, event-driven automations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
commpeak: {
type: "app",
app: "commpeak",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://hlr.commpeak.com/info`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.commpeak.$auth.api_token}`,
},
})
},
})