with PushEngage and Membado?
Assign tags to or remove them from a user. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushengage: {
type: "app",
app: "pushengage",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://api.pushengage.com/apiv1/notifications`,
headers: {
"api-key": `${this.pushengage.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
membado: {
type: "app",
app: "membado",
}
},
async run({steps, $}) {
const data = {
"apikey": `${this.membado.$auth.api_key}`,
"mail": `sergio@pipekit.com`,
}
return await axios($, {
method: "post",
url: `https://www.membado.io/api/${this.membado.$auth.user_identifier}/add-member`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
},
data,
})
},
})