with Ideal Postcodes and Veriff?
Validate email addresses using Ideal Postcodes. See the documentation
Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name, and id. See the documentation
Validates a phone number and returns information about it. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ideal_postcodes: {
type: "app",
app: "ideal_postcodes",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses`,
params: {
"q": `parkside`,
api_key: `${this.ideal_postcodes.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
veriff: {
type: "app",
app: "veriff",
}
},
async run({steps, $}) {
const data = {
"verification": {
"callback": "https://veriff.me",
"vendorData": `${this.veriff.$auth.guid}`
}
}
return await axios($, {
method: "post",
url: `${this.veriff.$auth.api_url}/v1/sessions/`,
headers: {
"content-type": `application/json`,
"x-auth-client": `${this.veriff.$auth.api_key}`,
},
data,
})
},
})