with Cometly and SimplyBook.me?
Sends an event to the Cometly API. [See the documentation]https://developers.cometly.com/#endpoint-advanced-method)
The Cometly API allows you to track ad performance and automate the analysis and optimization of advertising campaigns. With Pipedream, you can create serverless workflows that interact with the Cometly API to streamline campaign management tasks, such as retrieving campaign metrics, updating ad spend, and generating performance reports. Using Cometly in conjunction with Pipedream’s robust integration capabilities, you can connect to numerous other services to enrich your ads data, automate actions based on performance thresholds, and synchronize your marketing efforts across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cometly: {
type: "app",
app: "cometly",
}
},
async run({steps, $}) {
const data = {
"event_name": `developer`,
"email": `sergio@pipekit.pro`,
"comet_token": `ddffd8d8338383883838484843838388d8dfaf`,
"ip": `123.123.123.123`,
"event_time": `test`,
}
return await axios($, {
method: "post",
url: `https://app.cometly.com/public-api/v1/events`,
headers: {
Authorization: `Bearer ${this.cometly.$auth.api_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})
SimplyBook.me is a robust appointment scheduling API that enables businesses to manage bookings, clients, and services efficiently. By leveraging the SimplyBook.me API on Pipedream, users can automate the scheduling process, sync data across various platforms, and enhance customer interactions through tailored communications and streamlined workflows. This API integration facilitates real-time booking updates, client management, and service modifications, making it a vital tool for businesses aiming to optimize their appointment scheduling and operational workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
simplybook_me: {
type: "app",
app: "simplybook_me",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://user-api-v2.simplybook.me/admin/bookings/`,
headers: {
"Content-Type": `application/json`,
"X-Token": `${this.simplybook_me.$auth.oauth_access_token}`,
"X-Company-Login": `${this.simplybook_me.$auth.company}`,
},
})
},
})