import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
faceup: {
type: "app",
app: "faceup",
}
},
async run({steps, $}) {
const data = {
"query": `query Statistics {
publicStatistics(
dateFrom: "2024-04-17T01:34:56.000Z"
) {
reportCountByMonth
}
}`,
}
return await axios($, {
method: "post",
url: `https://www.api.faceup.com/graphql`,
headers: {
"X-Region": `${this.faceup.$auth.region}`,
"Authorization": `${this.faceup.$auth.api_key}`,
},
data,
})
},
})
Emit new event when a new internal comment is created. Must create webhook within the Faceup UI and enter the URL of this source to receive events. See the documentation
Emit new event when a new message from a sender is created. Must create webhook within the Faceup UI and enter the URL of this source to receive events. See the documentation
Emit new event when a new report is created. Must create webhook within the Faceup UI and enter the URL of this source to receive events. See the documentation
FaceUp uses API keys for authentication. When you connect your FaceUp account, Pipedream securely stores the keys so you can easily authenticate to FaceUp APIs in both code and no-code steps.