gatsby-source-marketo

1.0.2 • Public • Published

npm version

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

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
            ...
          }
        }
      }
    }
  }
}

Package Sidebar

Install

npm i gatsby-source-marketo

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

6.1 kB

Total Files

4

Last publish

Collaborators

  • dave.ackerman