with Plain and HypeAuditor?
Returns a report about the specified Instagram user. See the documentation
Returns a report about the specified Tiktok channel. See the documentation
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
The HypeAuditor API provides deep insights into social media account analytics and influencer effectiveness, making it a powerful tool for marketers who want to optimize their influencer campaigns. Using this API, you can access detailed data concerning influencer audience demographics, engagement rates, authenticity, and more. This can aid in identifying the right influencers for your brand, tracking campaign performance, and refining your marketing strategies over time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hypeauditor: {
type: "app",
app: "hypeauditor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://hypeauditor.com/api/method/auditor.report/`,
headers: {
"x-auth-id": `${this.hypeauditor.$auth.client_id}`,
"x-auth-token": `${this.hypeauditor.$auth.api_token}`,
"user-agent": `pipedream/1`,
},
params: {
username: `taylorswift`,
"v": `2`,
},
})
},
})