with Returnless and Formatting?
Emit new event when a return is created. See the documentation
Emit new event when a return note is added. See the documentation
Emit new event when a return product is marked as received. See the documentation
Emit new event when a return status is changed. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
returnless: {
type: "app",
app: "returnless",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-v2.returnless.com/2023-01/account`,
headers: {
Authorization: `Bearer ${this.returnless.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})