with OpnForm and TPSCheck?
Validates a provided number against the TPS/CTPS register. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opnform: {
type: "app",
app: "opnform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opnform.com/external/zapier/validate`,
headers: {
Authorization: `Bearer ${this.opnform.$auth.api_key}`,
},
})
},
})
The TPSCheck API provides access to the UK's Telephone Preference Service (TPS) and Corporate Telephone Preference Service (CTPS) databases, enabling businesses to check if a telephone number is registered. This helps in compliance with regulations by avoiding unwanted sales calls to these numbers. In Pipedream, you can use this API to automate the process of verifying numbers directly within your workflows, combining it with various triggers, actions from other apps, and custom logic for streamlined operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tpscheck: {
type: "app",
app: "tpscheck",
}
},
async run({steps, $}) {
const data = {
"phone": `01829 830730`,
}
return await axios($, {
method: "post",
url: `https://www.tpscheck.uk/check`,
headers: {
"Authorization": `Token ${this.tpscheck.$auth.api_key}`,
},
data,
})
},
})