with Sage Accounting and DHL?
Get tracking information for shipments. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sage_accounting: {
type: "app",
app: "sage_accounting",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.accounting.sage.com/v3.1/user`,
headers: {
Authorization: `Bearer ${this.sage_accounting.$auth.oauth_access_token}`,
},
})
},
})
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}`,
},
})
},
})