with Sign.Plus and DHL?
Get tracking information for shipments. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sign_plus: {
type: "app",
app: "sign_plus",
}
},
async run({steps, $}) {
const data = {
"sandbox": true
}
return await axios($, {
method: "post",
url: `https://restapi.sign.plus/v2/templates`,
headers: {
Authorization: `Bearer ${this.sign_plus.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
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}`,
},
})
},
})