with Helcim and HelpSpot?
Helcim is a payment platform that lets you process transactions, manage customers, and handle various aspects of your business's finances. Using Pipedream, you can tap into the Helcim API to create automations that streamline payment processing, sync transaction data with other business tools, and trigger actions based on payment events. It's an ideal way to integrate sales data with other systems, automate accounting tasks, and enhance customer relationship management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helcim: {
type: "app",
app: "helcim",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://secure.myhelcim.com/api/account-info`,
headers: {
"account-id": `${this.helcim.$auth.account_id}`,
"api-token": `${this.helcim.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpspot: {
type: "app",
app: "helpspot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.helpspot.$auth.subdomain}.helpspot.com/api/index.php`,
headers: {
Authorization: `Bearer ${this.helpspot.$auth.api_token}`,
},
params: {
method: `private.addressbook.getContacts`,
output: `json`,
},
})
},
})