import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
walletap: {
type: "app",
app: "walletap",
}
},
async run({steps, $}) {
const data = {
"title": `Flash offer!`,
"content": `Get 70% discount now`,
}
return await axios($, {
method: "post",
url: `https://api.walletap.io/template/${this.walletap.$auth.template_id}/notification`,
headers: {
"x-api-key": `${this.walletap.$auth.api_key}`,
},
data,
})
},
})
Sends a notification to all pass users. See the documentation
Updates an existing Walletap pass and pushes the updated pass to the user. See the documentation
WalleTap uses API keys for authentication. When you connect your WalleTap account, Pipedream securely stores the keys so you can easily authenticate to WalleTap APIs in both code and no-code steps.