with Botsonic and Membado?
Assign tags to or remove them from a user. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botsonic: {
type: "app",
app: "botsonic",
}
},
async run({steps, $}) {
const data = {
"input_text": `{{your_input_text}}`, //E.g. How to develop these skills?
"chat_id": `{{your_chat_id}}`, //E.g. 9f2569da-ba86-4a88-a4c0-9932a91bedf4
}
return await axios($, {
method: "post",
url: `${this.botsonic.$auth.generate_endpoint}`,
headers: {
"token": `${this.botsonic.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
data,
})
},
})
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,
})
},
})