with SMS Messages and Nutrient Document Web Services API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sms_messages: {
type: "app",
app: "sms_messages",
}
},
async run({steps, $}) {
const data = {
"sms":
{
"user":`${this.sms_messages.$auth.username}`,
"dst":
{
"num":
[
"++3460000000"
]
},
"txt":"Hello world!"
}
}
return await axios($, {
method: "post",
url: `https://api.lleida.net/sms/v2/`,
headers: {
"content-type": `application/json; charset=utf-8`,
"accept": `application/json`,
"authorization": `x-api-key ${this.sms_messages.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nutrient_document_web_services_api: {
type: "app",
app: "nutrient_document_web_services_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.nutrient.io/account/info`,
headers: {
Authorization: `Bearer ${this.nutrient_document_web_services_api.$auth.api_key}`,
},
})
},
})