with PlentyONE and Sage Accounting?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plentyone: {
type: "app",
app: "plentyone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://p${this.plentyone.$auth.id}.my.plentysystems.com/rest/user`,
headers: {
Authorization: `Bearer ${this.plentyone.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sage_accounting: {
type: "app",
app: "sage_accounting",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.accounting.sage.com/v3.1/user`,
headers: {
Authorization: `Bearer ${this.sage_accounting.$auth.oauth_access_token}`,
},
})
},
})