Added an API endpoint that triggers an RSS campaign.

This commit is contained in:
Tomas Bures 2018-12-29 15:12:42 +01:00
parent e786964411
commit 428fb9db7b
8 changed files with 88 additions and 7 deletions

View file

@ -348,6 +348,26 @@ export default class API extends Component {
</p>
<pre>curl -XGET '{getUrl(`api/lists/test@example.com?access_token=${accessToken}`)}'</pre>
<h4>GET /api/rss/fetch/:campaignCid {t('Trigger fetch of a campaign')}</h4>
<p>
{t('Forces the RSS feed check to immediately check the campaign with the given CID (in :campaignCid). It works only for RSS campaigns.')}
</p>
<p>
<strong>GET</strong> {t('arguments')}
</p>
<ul>
<li><strong>access_token</strong> {t('yourPersonalAccessToken')}</li>
</ul>
<p>
<strong>{t('example')}</strong>
</p>
<pre>curl -XGET '{getUrl(`api/rss/fetch/5OOnZKrp0?access_token=${accessToken}`)}'</pre>
</div>
);
}