zulip/zerver/lib
Feorlen 676f0ad63f Add WordPress webhook.
Adds a new webhook integration for WordPress blogs. Both WordPress.com
and self-installed blogs are supported, with minor differences that
are described in the documentation. It creates a new message for each
action, the stream and topic may be specified or use default values.

WordPress actions supported:

publish_post:  a new blog post was published
publish_page:  a new page was published
user_register: a new user account was created
wp_login:      a user logged in

Notes: comment_post only provides the id of the parent post, not title
or link, so was not included. On further testing, I found edit_post is
not very practical, it also fires while a new post is being written, and
when posts are deleted. (I think it tracks drafts too.) I've removed it,
as it seems more confusing than useful.

Fixes #3245
2017-02-07 18:14:31 -08:00
..
bugdown bugdown: Disable link previews when bots send messages. 2017-02-03 17:08:23 -08:00
url_preview mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
webhooks mypy: Convert more zerver/lib files to typing.Text. 2016-12-05 21:17:24 -08:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Remove zh_CN old Django name for Chinese. 2017-02-03 14:29:03 -08:00
alert_words.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
avatar.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
avatar_hash.py lint: clean up PEP-8 W391 rule. 2017-01-23 20:39:02 -08:00
bulk_create.py Remove calls to get_realm in preparation for its deprecation. 2016-12-26 17:53:32 -08:00
cache.py lint: Clean up E121 PEP-8 rule. 2017-01-23 21:02:39 -08:00
cache_helpers.py lint: Clean up E123 PEP-8 rule. 2017-01-23 21:34:26 -08:00
camo.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
ccache.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
context_managers.py mypy: Change Generator[None, None, None] to Iterator[None]. 2016-11-27 10:42:16 -08:00
create_user.py create_user: Remove Python 3 related hack about bot_owner. 2017-01-14 12:22:38 -08:00
db.py lint: Clean up E123 PEP-8 rule. 2017-01-23 21:34:26 -08:00
debug.py Fixed typos with receive 2017-01-12 04:52:44 -08:00
digest.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
domains.py Add stricter domain validation and improve error messages. 2017-01-26 17:24:25 -08:00
email_mirror.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
emoji.py lint: clean up PEP-8 W391 rule. 2017-01-23 20:39:02 -08:00
error_notify.py errors: Move do_report_error into zerver/lib/. 2017-01-23 23:18:28 -08:00
export.py Use correct string type in boto function parameters. 2017-02-06 22:37:37 -08:00
html_diff.py internal_send_message: Make realm argument mandatory. 2017-01-21 21:37:30 -08:00
i18n.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
initial_password.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
integrations.py Add WordPress webhook. 2017-02-07 18:14:31 -08:00
logging_util.py logging: Fix handling of tracebacks with no exc_info. 2016-12-20 11:49:12 -08:00
mandrill_client.py Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
mention.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
message.py Pass in sent_by_bot flag to bugdown parser. 2017-02-03 17:07:38 -08:00
migrate.py lint: Clean up W503 PEP-8 warning. 2017-01-23 20:50:04 -08:00
name_restrictions.py name_restrictions: Add a few more reserved subdomains. 2016-12-26 14:59:09 -08:00
narrow.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
notifications.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
parallel.py pep8: Fix E301 pep8 violations. 2016-11-29 08:51:44 -08:00
push_notifications.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
queue.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
rate_limiter.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
redis_utils.py settings: Add support for specifying a remote redis password. 2016-08-11 16:54:22 -07:00
request.py mypy: Fix missing class in request.pyi and document. 2016-12-28 09:37:28 -08:00
request.pyi mypy: Fix missing class in request.pyi and document. 2016-12-28 09:37:28 -08:00
response.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
rest.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
retention.py pep8: Fix E231. 2016-11-30 19:59:25 -08:00
session_user.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
sqlalchemy_utils.py mypy: Remove a bunch of now-unnecessary type: ignore annotations. 2016-10-17 11:48:34 -07:00
statistics.py lint: Clean up E126 PEP-8 rule. 2017-01-23 22:06:13 -08:00
str_utils.py mypy: Convert the isinstances function in /zerver/lib/ to use typing.Text. 2016-12-25 10:33:45 -08:00
streams.py streams: Consider stream name validation logic. 2017-01-29 22:07:14 -08:00
test_classes.py subscribe_to_stream: Return the stream object. 2017-01-29 20:26:59 -08:00
test_fixtures.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
test_helpers.py zerver/lib/test_helpers.py: Wrap function in lambda. 2017-02-06 22:35:35 -08:00
test_runner.py lint: Clean up E702 PEP-8 rule. 2017-01-23 21:37:27 -08:00
timeout.py Replace 'type' with 'Type[BaseException]'. 2017-02-06 22:34:01 -08:00
timestamp.py timestamp.py: Add {floor,ceiling}_to_{hour,day} to parallel floor_to_day. 2016-12-29 14:20:13 -08:00
type_debug.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
unminify.py mypy: Convert zerver/lib to use typing.Text. 2016-12-25 10:33:45 -08:00
upload.py Use correct string type in boto function parameters. 2017-02-06 22:37:37 -08:00
user_agent.py Add type annotation to mention.py, redis_utils.py, timestamp.py, user_agent.py 2016-06-03 19:00:16 -07:00
utils.py subdomains: Don't show login page on root aliases. 2017-01-17 15:29:24 -08:00
validator.py Add annotations for zerver/lib/validator. 2016-06-03 23:53:49 -07:00