with Microsoft Authenticator and Evernote?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_authenticator: {
type: "app",
app: "microsoft_authenticator",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://microsoft-authenticator.p.rapidapi.com/new_v2/`,
headers: {
"x-rapidapi-host": `microsoft-authenticator.p.rapidapi.com`,
"x-rapidapi-key": `${this.microsoft_authenticator.$auth.rapid_api_key}`,
},
})
},
})
import { Client } from 'evernote';
export default defineComponent({
props: {
evernote: {
type: "app",
app: "evernote",
}
},
async run({ steps, $ }) {
var developerToken = this.evernote.$auth.developer_token;
var client = new Client({ token: developerToken, sandbox: false });
var noteStore = await client.getNoteStore();
return await noteStore.listNotebooks();
},
})