with Tailscale and Files.com?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tailscale: {
type: "app",
app: "tailscale",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tailscale.com/api/v2/tailnet/pipedream.com/users`,
headers: {
Authorization: `Bearer ${this.tailscale.$auth.oauth_access_token}`,
},
})
},
})
The Files.com API offers the flexibility to automate file management and manipulate folder structures programmatically. With Files.com on Pipedream, you can construct workflows that handle file synchronization, sharing, and security. It's a powerhouse for creating custom triggers based on file events, automating content distribution, or integrating seamless file operations within a broader data processing ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
files_com: {
type: "app",
app: "files_com",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.files_com.$auth.subdomain}.files.com/api/rest/v1/users.json`,
headers: {
"X-FilesAPI-Key": `${this.files_com.$auth.api_key}`,
},
})
},
})