The world’s smartest loyalty engine 🚀 Changing the way businesses and people connect.
The Piggy API provides a suite of loyalty and reward services allowing businesses to manage customer loyalty programs, offer discounts, and track customer engagement. With Pipedream, you can harness this powerful API to automate various aspects of your loyalty program. You might sync loyalty data with other business systems, trigger emails or notifications based on customer actions, or generate reports on the effectiveness of your loyalty campaigns.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
piggy: {
type: "app",
app: "piggy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.piggy.eu/api/v3/oauth/clients/contacts`,
headers: {
Authorization: `Bearer ${this.piggy.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})