with BotPenguin and Serply?
Adds a new WhatsApp contact to your BotPenguin account. See the documentation
Performs a Google Search and searches for a website in Search Engine Results Pages (SERP). See the documentation
Performs a Google search using the Serply API. 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,
})
},
})
The Serply API offers a way to automate SEO tasks by providing data about search engine results pages (SERPs). It enables you to retrieve search results, rankings, and related keywords, which can be essential for SEO analysis and content strategy. On Pipedream, you can leverage Serply to create powerful workflows that trigger on various events, process SERP data, and integrate with other services for a seamless automation experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
serply: {
type: "app",
app: "serply",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.serply.io/v1/search/q=pipedream`,
headers: {
"X-Api-Key": `${this.serply.$auth.api_token}`,
},
})
},
})