<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/source/providers/TikTok/config.json

return [
  'name' => 'tiktok', 
  'title' => 'TikTok', 
  'description' => 'Source based on Media from TikTok.', 
  'group' => 'Social Media', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/source/providers/TikTok/icon.svg', $file), 
  'endpoints' => [
    'presave' => 'yooessentials/source/tiktok'
  ], 
  'fields' => [
    'name' => [
      'label' => 'Name', 
      'description' => 'A name to identify this source.', 
      'attrs' => [
        'autofocus' => true, 
        'placeholder' => 'TikTok'
      ]
    ], 
    'account' => [
      'label' => 'Account', 
      'type' => 'yooessentials-connected-auth', 
      'connections' => [
        'tiktok' => ['user.info.basic', 'video.list']
      ], 
      'description' => 'The TikTok account from which to create the source.'
    ], 
    'cache_default' => $config->get('yooessentials.source.fields.cache_default_limited')
  ]
];
