TextMagic is an international text messaging company that helps small businesses engage with their customers.
TextMagic API is a cloud-based platform that provides a range of messaging API
and Services that enables developers to quickly and easily add text messaging,
voice services and two-way conversations into web, mobile and other types of
applications. With TextMagic API, you are able to build reliable messaging
services, ranging from simple notifications and alerts to more robust
applications involving multi-step workflows and automation.
Here are some examples of what you can build using TextMagic API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
textmagic: {
type: "app",
app: "textmagic",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.textmagic.com/api/v2/user`,
headers: {
"X-TM-Username": `${this.textmagic.$auth.username}`,
"X-TM-Key": `${this.textmagic.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})