function __construct($page)
{
// Set the name
$this->name = __('API Settings', 'apple-news');
// Add the settings
$this->settings = array('api_channel' => array('label' => __('Channel ID', 'apple-news'), 'type' => 'string'), 'api_key' => array('label' => __('API Key ID', 'apple-news'), 'type' => 'string'), 'api_secret' => array('label' => __('API Key Secret', 'apple-news'), 'type' => 'password'), 'api_autosync' => array('label' => __('Automatically publish to Apple News', 'apple-news'), 'type' => array('yes', 'no')), 'api_autosync_update' => array('label' => __('Automatically update Apple News', 'apple-news'), 'type' => array('yes', 'no')), 'api_async' => array('label' => __('Asynchronously publish to Apple News', 'apple-news'), 'type' => array('yes', 'no'), 'description' => $this->get_async_description()));
// Add the groups
$this->groups = array('apple_news' => array('label' => __('Apple News API', 'apple-news'), 'settings' => array('api_channel', 'api_key', 'api_secret', 'api_autosync', 'api_autosync_update', 'api_async')));
parent::__construct($page);
}