with Storerocket and Systeme.io?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
storerocket: {
type: "app",
app: "storerocket",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://storerocket.io/api/v2/user`,
headers: {
Authorization: `Bearer ${this.storerocket.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
systeme_io: {
type: "app",
app: "systeme_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.systeme.io/api/contacts`,
headers: {
"x-api-key": `${this.systeme_io.$auth.api_key}`,
},
})
},
})