with Tailscale and UrlToPDF?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
urltopdf: {
type: "app",
app: "urltopdf",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.urltopdf.net/convert`,
headers: {
"authorization": `${this.urltopdf.$auth.api_key}`,
},
params: {
url: `https://pipedream.com`,
format: `A4`,
landscape: `false`,
singlePage: `false`,
renderDelay: `0`,
},
})
},
})