with BotPenguin and Adyntel?
Adds a new WhatsApp contact to your BotPenguin account. See the documentation
Retrieve all Google ads for a given company domain. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botpenguin: {
type: "app",
app: "botpenguin",
}
},
async run({steps, $}) {
const data = [
{
"profile": {
"userDetails": {
"name": "BPTest",
"contact": {
"email": "test@example.com",
"phone": {
"number": "90123456789",
"prefix": "91"
}
},
"tags": [],
"attributes": [],
"userProvidedName": "BPTest"
}
}
}
]
return await axios($, {
method: "post",
url: `https://api.v7.botpenguin.com/inbox/users/import`,
headers: {
Authorization: `Bearer ${this.botpenguin.$auth.access_token}`,
"botid": `${this.botpenguin.$auth.bot_id}`,
"authtype": `Key`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adyntel: {
type: "app",
app: "adyntel",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.adyntel.$auth.api_key}`,
"email": `${this.adyntel.$auth.username}`,
"company_domain": `pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://api.adyntel.com/google`,
data,
})
},
})