with Egnyte and Revolt?
Emit new event when a file is added within the specified folder in Egnyte. See the documentation
Emit new event when a folder is added within the specified folder in Egnyte. See the documentation
Creates a new folder in your Egnyte workspace. See the documentation
Uploads a file to a specified folder in Egnyte. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
egnyte: {
type: "app",
app: "egnyte",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.egnyte.$auth.subdomain}.egnyte.com/pubapi/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.egnyte.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
revolt: {
type: "app",
app: "revolt",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.revolt.$auth.environment}/auth/account/`,
headers: {
"x-session-token": `${this.revolt.$auth.oauth_access_token}`,
},
})
},
})