<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/auth/drivers/Mailchimp/driver-apikey.json

return [
  'name' => 'mailchimp-apikey', 
  'title' => 'Mailchimp API Key', 
  'description' => 'Key based authentication', 
  'documentation' => 'https://mailchimp.com/developer/marketing/guides/quick-start/#generate-your-api-key', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/auth/drivers/Mailchimp/icon.svg', $file), 
  'endpoints' => [
    'oauth' => 'https://oauth.zoolanders.com/mailchimp', 
    'presave' => 'yooessentials/auth/mailchimp/apikey'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'Optional name to identify this key.'
    ], 
    'key' => [
      'type' => 'yooessentials-password', 
      'label' => 'API Key', 
      'description' => 'The API Key created within the <a href="https://us1.admin.mailchimp.com/account/api" target="_blank">API Keys section</a> of your Mailchimp account', 
      'encrypt' => true
    ]
  ]
];
