with iAuditor by SafetyCulture and Real ID?
Create a new inspection in iAuditor by SafetyCulture. See the documentation
Permanently delete all data associated with a specific ID check. See the documentation
Create a new user in iAuditor by SafetyCulture. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
real_id: {
type: "app",
app: "real_id",
}
},
async run({steps, $}) {
const data = {
firstName: "John",
lastName: "Smith",
email: "johnsmith@gmail.com",
}
return await axios($, {
method: "post",
url: `https://real-id.getverdict.com/api/v1/checks`,
headers: {
Authorization: `Bearer ${this.real_id.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})