GetSwift is a technology & services co. helping businesses build, manage & optimize their delivery & business systems
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Getswift API provides programmatic access to the Getswift delivery platform, enabling you to manage and track deliveries, drivers, and orders. Integrating this API with Pipedream allows you to create automated workflows that can optimize delivery operations, sync data with other business tools, and respond to events in real-time. With Pipedream, you can trigger actions based on Getswift events, process delivery data, and connect to countless other services to extend the capabilities of your logistics operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getswift: {
type: "app",
app: "getswift",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.getswift.co/api/public/v2/drivers`,
params: {
ApiKey: `${this.getswift.$auth.api_key}`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})