Cloud-based inventory management software for small to mid-size businesses
The Locate API is a REST API that enables you to access the Locate inventory
management system from your own applications. With the Locate API, you can
create, update, and delete inventory items, track inventory levels, and manage
orders and invoices.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
locate: {
type: "app",
app: "locate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.locate.$auth.subdomain}.locateinv.com/salesordertype`,
headers: {
"Content-Type": `application/json`,
"Accept": `application/json`,
},
auth: {
username: `${this.locate.$auth.api_key}`,
password: `${this.locate.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})