diff --git a/templates/zerver/api.html b/templates/zerver/api.html index 98539ad0c0..daff7f4559 100644 --- a/templates/zerver/api.html +++ b/templates/zerver/api.html @@ -80,7 +80,7 @@ to pull out the resulting HTML :) "to": "Denmark", "subject": "Castle", "content": "Something is rotten in the state of Denmark." -}) +}) # Send a private message client.send_message({ "type": "private", @@ -101,7 +101,7 @@ to pull out the resulting HTML :)
-

You can use zulip-send (found in bin/ in the tarball) to easily send Zulips from the command-line, providing the message to be sent on STDIN. +

You can use zulip-send (found in bin/ in the tarball) to easily send Zulips from the command-line, providing the message to be sent on STDIN.

Stream message

zulip-send --stream Denmark --subject Castle \
@@ -124,7 +124,7 @@ to pull out the resulting HTML :)
       

You can omit the user{% if api_site_required %}, api-key, and site{% else %} and api-key{% endif %} arguments if you have a ~/.zuliprc file. -

+

See also the full API endpoint documentation.

@@ -136,8 +136,8 @@ to pull out the resulting HTML :)

You can create bots on your settings page. Once you have a bot, you can use its email and API key to send messages.

-

Create a bot: -

+

Create a bot:

+

Look for the bot's email and API key:

@@ -150,4 +150,7 @@ to pull out the resulting HTML :) key=BOT_API_KEY email=BOT_EMAIL_ADDRESS {% if api_site_required %}site={{ external_api_uri }}{% endif %} + {% endblock %} + + diff --git a/tools/check-templates b/tools/check-templates index d837b17df9..59c92324a4 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -205,7 +205,6 @@ def check_handlebar_templates(templates, modified_only): def check_django_templates(templates, modified_only): def ok(fn): if 'templates' not in fn: return False - if 'api.html' in fn: return False if 'base.html' in fn: return False return True