with D7 SMS and Outline?
The D7 SMS API on Pipedream allows you to send SMS messages programmatically to users worldwide from a serverless platform. This API can enable instant communication with customers or team members directly from automated workflows. With Pipedream, you can trigger SMS messages based on events from countless apps, handle incoming messages, and integrate with other services for a seamless messaging experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
d7_networks: {
type: "app",
app: "d7_networks",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.d7networks.com/messages/v1/balance`,
headers: {
Authorization: `Bearer ${this.d7_networks.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
outline: {
type: "app",
app: "outline",
}
},
async run({steps, $}) {
const data = {
"offset": `1`,
"limit": `20`,
"sort": `updatedAt`,
"direction": `DESC`,
}
return await axios($, {
method: "post",
url: `https://app.getoutline.com/api/users.list`,
headers: {
Authorization: `Bearer ${this.outline.$auth.api_key}`,
},
data,
})
},
})