with npm and UPS?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Get tracking information for a UPS tracking number. See the documentation
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,
    })
  },
})