with Jotform and Trunkrs?
Emit new event when a new shipment is created. See the documentation
Emit new event when a shipment is cancelled. See the documentation
Emit new event when a shipment is reviewed. See the documentation
Emit new event when a shipment state is updated. See the documentation
Jotform’s API is a powerhouse for automating form and survey data management. With Pipedream, harness this API to trigger workflows from new form submissions, manipulate and analyze your form data, and sync it across various platforms. Think streamlined data entry to CRMs, instant notifications for new leads or feedback, and timely data backups to cloud storage.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jotform: {
type: "app",
app: "jotform",
}
},
methods: {
_getBaseUrl() {
return this.jotform.$auth.subdomain
? `https://${this.jotform.$auth.subdomain}.jotform.com/API/`
: `https://${this.jotform.$auth.region}.jotform.com/`;
},
},
async run({steps, $}) {
const baseUrl = this._getBaseUrl();
return await axios($, {
url: `${baseUrl}user`,
params: {
apiKey: `${this.jotform.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trunkrs: {
type: "app",
app: "trunkrs",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.trunkrs.$auth.environment}/api/v2/shipments`,
headers: {
"x-api-key": `${this.trunkrs.$auth.api_key}`,
},
})
},
})