with Piggy and Cogmento?
Emit new event when a new contact is added in Cogmento. See the documentation
Emit new event when a new deal is created in Cogmento. See the documentation
Emit new event when a new task is created in Cogmento. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cogmento: {
type: "app",
app: "cogmento",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cogmento.com/api/1/auth/user/`,
headers: {
"accept": `application/json`,
"authorization": `Token ${this.cogmento.$auth.oauth_access_token}`,
},
})
},
})