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,
})
},
})
Creates a mobile Wallet pass. See the documentation
Gets a Walletap pass by ID. See the documentation
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.