Interact with an SFTP (SSH File Transfer Protocol) Server using a private key for auth
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status
trigger. More information here
Emit new event when a collaborator is added See the documentation
Emit new event when commits are pushed to a branch See the documentation
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
Find issues and pull requests by state and keyword. See docs here
SFTP (SSH File Transfer Protocol) is a secure file transfer protocol for
exchanging files between computers over a secure connection. The protocol
utilizes public-key cryptography to provide authentication and encryption of
the data being transferred. SFTP is widely used in enterprise environments for
securely transferring data between locations and users, as well as for managing
remote computer systems (for example, for monitoring and software/security
updates).
Here are some examples of what you can build using the SFTP (key-based auth)
API:
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();
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
github: {
type: "app",
app: "github",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.github.com/user`,
headers: {
Authorization: `Bearer ${this.github.$auth.oauth_access_token}`,
"X-GitHub-Api-Version": `2022-11-28`,
},
})
},
})