with npm and DHL?
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 shipments. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dhl: {
type: "app",
app: "dhl",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.dhl.$auth.api_url}/track/shipments`,
headers: {
"content-type": `application/json`,
"dhl-api-key": `${this.dhl.$auth.api_key}`,
},
params: {
trackingNumber: `${this.dhl.$auth.tracking_number}`,
},
})
},
})