with Channable and Marketo?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
channable: {
type: "app",
app: "channable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.channable.com/v2/companies/${this.channable.$auth.company_id}/projects/${this.channable.$auth.project_id}/orders`,
headers: {
Authorization: `Bearer ${this.channable.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
marketo: {
type: "app",
app: "marketo",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.marketo.$auth.rest_api_identity_url}/oauth/token`,
headers: {
Authorization: `Bearer ${this.marketo.$auth.oauth_access_token}`,
},
})
},
})