2014-11-08 02:37:12 +01:00
|
|
|
<div class="page-header">
|
2016-10-02 04:24:33 +02:00
|
|
|
<h2><?php echo $title ?></h2>
|
2015-01-13 22:03:24 +01:00
|
|
|
<nav>
|
|
|
|
<ul>
|
2016-10-02 04:24:33 +02:00
|
|
|
<li><a href="?action=config"><?php echo t('general') ?></a></li>
|
2016-12-26 15:44:53 +01:00
|
|
|
<li><a href="?action=profile"><?php echo t('profile') ?></a></li>
|
|
|
|
<?php if (Miniflux\Helper\is_admin()): ?>
|
|
|
|
<li><a href="?action=users"><?php echo t('users') ?></a></li>
|
|
|
|
<?php endif ?>
|
2016-10-02 04:24:33 +02:00
|
|
|
<li><a href="?action=services"><?php echo t('external services') ?></a></li>
|
|
|
|
<li class="active"><a href="?action=api"><?php echo t('api') ?></a></li>
|
|
|
|
<li><a href="?action=help"><?php echo t('help') ?></a></li>
|
|
|
|
<li><a href="?action=about"><?php echo t('about') ?></a></li>
|
2015-01-13 22:03:24 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-11-08 02:37:12 +01:00
|
|
|
</div>
|
|
|
|
<section>
|
2015-01-17 23:15:47 +01:00
|
|
|
<div class="panel panel-default">
|
2016-10-02 04:24:33 +02:00
|
|
|
<h3 id="fever"><?php echo t('Fever API') ?></h3>
|
2014-11-08 02:37:12 +01:00
|
|
|
<ul>
|
2016-10-02 04:24:33 +02:00
|
|
|
<li><?php echo t('API endpoint:') ?> <strong><?php echo Miniflux\Helper\get_current_base_url(), 'fever/' ?></strong></li>
|
2016-12-26 15:44:53 +01:00
|
|
|
<li><?php echo t('API username:') ?> <strong><?php echo Miniflux\Helper\escape($user['username']) ?></strong></li>
|
|
|
|
<li><?php echo t('API token:') ?> <strong><?php echo Miniflux\Helper\escape($user['fever_token']) ?></strong></li>
|
2014-11-08 02:37:12 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-01-17 23:15:47 +01:00
|
|
|
<div class="panel panel-default">
|
2016-10-02 04:24:33 +02:00
|
|
|
<h3 id="api"><?php echo t('Miniflux API') ?></h3>
|
2014-11-08 02:37:12 +01:00
|
|
|
<ul>
|
2016-10-02 04:24:33 +02:00
|
|
|
<li><?php echo t('API endpoint:') ?> <strong><?php echo Miniflux\Helper\get_current_base_url(), 'jsonrpc.php' ?></strong></li>
|
2016-12-26 15:44:53 +01:00
|
|
|
<li><?php echo t('API username:') ?> <strong><?php echo Miniflux\Helper\escape($user['username']) ?></strong></li>
|
|
|
|
<li><?php echo t('API token:') ?> <strong><?php echo Miniflux\Helper\escape($user['api_token']) ?></strong></li>
|
2014-11-08 02:37:12 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|