with DHL and intelliflo office?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
intelliflo_office: {
type: "app",
app: "intelliflo_office",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.${this.intelliflo_office.$auth.region_code}.intelliflo.net/v2/clients`,
headers: {
Authorization: `Bearer ${this.intelliflo_office.$auth.oauth_access_token}`,
"x-api-key": `${this.intelliflo_office.$auth.api_key}`,
},
})
},
})