with Microsoft Word and NileDesk?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_word: {
type: "app",
app: "microsoft_word",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_word.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
niledesk: {
type: "app",
app: "niledesk",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.niledesk.$auth.api_key}`,
"template_id": `${this.niledesk.$auth.template_id}`,
}
return await axios($, {
method: "post",
url: `https://app.niledesk.com/api/public/CreateBoardDraftItem/${this.niledesk.$auth.org_id}`,
data,
})
},
})