TextMagic is an international text messaging company that helps small businesses engage with their customers.
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
The TextMagic API offers a robust platform for managing and automating SMS communications. With this API, you can programmatically send text messages, manage contacts, create distribution lists, and track message delivery status. Leveraging Pipedream's capabilities, you can integrate TextMagic with a wide array of services to craft workflows that streamline notifications, alerts, and customer interactions through the power of SMS.
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}`,
},
})
},
})
Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.
This includes installing PyPI packages, within your code without having to manage a requirements.txt
file or running pip
.
Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:
def handler(pd: "pipedream"):
# Reference data from previous steps
print(pd.steps["trigger"]["context"]["id"])
# Return data for use in future steps
return {"foo": {"test":True}}