with TestLocally and Returnless?
Emit new event when a new test is run or completed in TestLocally. See the documentation
Get details of a specific test in TestLocally. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
testlocally: {
type: "app",
app: "testlocally",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://testlocal.ly/api/v0/me`,
headers: {
Authorization: `Bearer ${this.testlocally.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
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`,
},
})
},
})