with Google Address Validation and Logo.dev?
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
logo_dev: {
type: "app",
app: "logo_dev",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.logo.dev/search`,
headers: {
Authorization: `Bearer ${this.logo_dev.$auth.secret_key}`,
},
params: {
"q": `Funko`,
},
})
},
})