with npm and PostNL?
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
Retrieve the status of a shipment using its barcode. See the documentation
Retrieve the status of a shipment using a reference number. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postnl: {
type: "app",
app: "postnl",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.postnl.$auth.api_url}/shipment/v2/status/barcode/3S${this.postnl.$auth.customer_code}123456789`,
headers: {
"apikey": `${this.postnl.$auth.api_key}`,
},
params: {
detail: `false`,
language: `NL`,
},
})
},
})