with Clear Books and iAuditor by SafetyCulture?
Emit new event when a new customer is added to the system.
Emit new event when a new purchase document is created.
Emit new event when an inspection has completed.
Creates a new customer in Clear Books. See the documentation
Creates a new Purchase Document in Clear Books. See the documentation
Create a new inspection in iAuditor by SafetyCulture. See the documentation
Creates a new supplier in Clear Books. See the documentation
Create a new user in iAuditor by SafetyCulture. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
clear_books: {
type: "app",
app: "clear_books",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.clearbooks.co.uk/v1/businesses`,
headers: {
Authorization: `Bearer ${this.clear_books.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
iAuditor by SafetyCulture API allows you to tap into a rich reservoir of safety and quality inspection data, enabling you to automate workflows around inspection management. With this API on Pipedream, you can create custom integrations to trigger actions based on audit completions, new issues, or updates in iAuditor. Streamline safety processes, connect with other tools, and manipulate inspection data to fit your needs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
iauditor_by_safetyculture: {
type: "app",
app: "iauditor_by_safetyculture",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.safetyculture.io/share/connections`,
headers: {
Authorization: `Bearer ${this.iauditor_by_safetyculture.$auth.api_token}`,
"accept": `application/json`,
"sc-integration-id": `sc-readme`,
},
})
},
})