Adobe Marketo Engage, the world’s largest marketing automation platform, is a singular solution that lets you attract, segment, and nurture customers — from discovery to biggest fan. And each touchpoint is tracked so you know what’s working. No more batch and blast. No more unqualified leads. Just effective engagement.
Go to siteimport { 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}`,
},
})
},
})
Marketo uses OAuth authentication. When you connect your Marketo account, Pipedream will open a popup window where you can sign into Marketo and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Marketo API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://{{custom_fields.account_id}}.mktorest.com/identity/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://{{custom_fields.account_id}}.mktorest.com/identity/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials