with UPS and Schedule?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ups: {
type: "app",
app: "ups",
}
},
async run({steps, $}) {
const data = {
"XAVRequest": {
"AddressKeyFormat": {
"ConsigneeName": "RITZ CAMERA CENTERS-1749",
"BuildingName": "Innoplex",
"AddressLine": [
"26601 ALISO CREEK ROAD",
"STE D",
"ALISO VIEJO TOWN CENTER"
],
"Region": "ROSWELL,GA,30076-1521",
"PoliticalDivision2": "ALISO VIEJO",
"PoliticalDivision1": "CA",
"PostcodePrimaryLow": "92656",
"PostcodeExtendedLow": "1521",
"Urbanization": "porto arundal",
"CountryCode": "US"
}
}
}
return await axios($, {
method: "post",
url: `https://onlinetools.ups.com/api/addressvalidation/v2/1`,
headers: {
Authorization: `Bearer ${this.ups.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
params: {
maximumcandidatelistsize: `1`,
},
data,
})
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.