with Vonage and Greenhouse Job Board?
import { Vonage } from '@vonage/server-sdk';
export default defineComponent({
props: {
vonage: {
type: "app",
app: "vonage",
}
},
async run({ steps, $ }) {
const vonage = new Vonage({
apiKey: this.vonage.$auth.api_key,
apiSecret: this.vonage.$auth.api_secret
});
const from = "Vonage APIs"
const to = this.vonage.$auth.phone_number
const text = 'A text message sent using the Vonage SMS API'
return await vonage.sms.send({ to, from, text });
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
greenhouse_job_board_api: {
type: "app",
app: "greenhouse_job_board_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://boards-api.greenhouse.io/v1/boards/${this.greenhouse_job_board_api.$auth.board_token}/jobs`,
headers: {
"accept": `application/json`,
},
})
},
})