import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
retriever: {
type: "app",
app: "retriever",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.helloretriever.com/api/v1/device_returns/`,
headers: {
Authorization: `Bearer ${this.retriever.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
Triggers when a new device return order is created. See the documentation
Retriever uses API keys for authentication. When you connect your Retriever account, Pipedream securely stores the keys so you can easily authenticate to Retriever APIs in both code and no-code steps.
Sign in and copy your API Key from API option in the left navigation menu.