gatsby-source-marketo
A plugin to source content (Forms, etc) from Marketo and make them queryable with GraphQL. This plugin only supports the Form/Field endpoints right now.
Install
yarn install gatsby-source-marketo
How to use
- Create your credentials for the Marketo API platform: http://developers.marketo.com/rest-api/authentication/
Update your gatsby-config
to include the following:
{
resolve: 'gatsby-source-marketo',
options: {
munchkinId: '--',
clientId: '---',
clientSecret: '---'
}
}
Query
{ allMarketoForm { edges { node { name marketoId url children { ...on MarketoFormField { id: marketoId validationMessage label required placeholder: hintText ... } } } } }}