with Marketo and Adtraction?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adtraction: {
type: "app",
app: "adtraction",
}
},
async run({steps, $}) {
const data = {
"market": `SE`,
}
return await axios($, {
method: "post",
url: `https://api.adtraction.com/v3/partner/programs/`,
headers: {
"content-type": `application/json;charset=UTF-8`,
},
params: {
token: `${this.adtraction.$auth.api_token}`,
},
data,
})
},
})