with Mindee and Google Address Validation?
import { axios } from "@pipedream/platform";
export default defineComponent({
props: {
mindee: {
type: "app",
app: "mindee",
}
},
async run({ steps, $ }) {
return await axios($, {
method: "GET",
url: `https://api-v2.mindee.net/v2/inferences/${this.mindee.$auth.job_id}`,
headers: {
"Authorization": `${this.mindee.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_address_validation: {
type: "app",
app: "google_address_validation",
}
},
async run({steps, $}) {
const data = {
"address": {
"regionCode": "US",
"addressLines": ["1600 Amphitheatre Parkway", "Mountain View, CA"]
},
"previousResponseId": "",
"enableUspsCass": true
}
return await axios($, {
method: "post",
url: `https://addressvalidation.googleapis.com/v1:validateAddress`,
params: {
key: `${this.google_address_validation.$auth.api_key}`,
},
data,
})
},
})