Commit graph

347 commits

Author SHA1 Message Date
Puneeth Chaganti 1231da46bf log2zulip: Remove unnecessary loop and fix incorrect variable name. 2019-07-13 11:09:36 -07:00
neiljp (Neil Pilgrim) c2e5b14034 api: Add UnrecoverableNetworkError Exception & use in do_api_query.
This replaces one case where the base ZulipError was raised, and another
where the original exception was re-raised.

This method, and so all API calls, should now only fail via raising this
Exception or by a non-'success' result in the return value dict; this
should avoid leaking any implementation detail and clarify expectations
in user code.
2019-03-29 14:12:26 -07:00
Eeshan Garg accfa8ddaf pypi: Release version 0.6.0. 2019-03-19 19:43:23 -02:30
Eeshan Garg 3a2e85c2b1 zulip: Fix argument name in add/remove reaction example comment.
The actual argument is supposed to be named `reaction_type`, not
`emoji_type`.
2019-03-02 19:12:44 -03:30
Eeshan Garg d43b9328f0 pypi: Release version 0.5.9. 2019-02-17 02:49:27 -03:30
neiljp (Neil Pilgrim) 47f9b103ab api: Fix add_reaction method to pass reaction_data.
Also correct the example usage text.
2019-02-16 03:29:24 -08:00
rht 6368b63e6c interrealm: Fix the msg formatting with special prefixes.
Tweaked by tabbott to cover all code blocks, not just quote blocks.

See https://chat.zulip.org/#narrow/stream/127-integrations/topic/cross.20realm.20bridge/near/695907
2019-02-15 16:43:36 -08:00
Sivagiri Visakan 26c85bb9ed zulip/examples: Add a script to get complete history of a narrow.
Fixes #476.
2019-01-28 22:49:47 -03:30
rht 4773370cc1 bridge_with_irc: Tell people to subscribe their bots to the stream. 2019-01-23 12:40:47 -08:00
Eeshan Garg 9931de2c6b pypi: Release version 0.5.8. 2019-01-22 22:35:37 -03:30
Eeshan Garg f2eaf80b9e integrations/rss: Pass config_file to zulip.Client.
Fixes #499.
2019-01-22 22:16:20 -03:30
rht 5b7f0c24bb bridge_with_irc: Implement nickserv password. 2019-01-17 14:19:46 -08:00
rht 5b704b7c1c bridge_with_irc: Prefix zulip->irc message with sender full name. 2019-01-17 14:19:46 -08:00
rht 836a51a8bf bridge_with_irc: Only forward stream messages at the specified topic. 2019-01-17 14:19:46 -08:00
rht 8ef0aba74a bridge_with_irc: Add command line arg to specify topic. 2019-01-16 16:27:52 -08:00
rht 8e69598a46 bridge_with_irc: Add a brief documentation. 2019-01-16 16:27:52 -08:00
rht 9efa0feaaf bridge_with_irc: Bump irc requirements version. 2019-01-16 16:27:52 -08:00
rht e14bb510cb bridge_with_irc: Remove obsolete comment. 2019-01-16 16:27:52 -08:00
rht 116a1228ae bridge_with_irc: Disable echo on Zulip -> IRC. 2019-01-16 16:27:52 -08:00
rht edcf1fd8e9 bridge_with_irc: Fix sending from Zulip to IRC and enable it by default. 2019-01-16 16:27:52 -08:00
rht 910f83ee8e bridge_with_irc: Use async client to avoid timeout. 2019-01-16 16:27:52 -08:00
rht 9be5ec33b3 bridge_with_irc: Relay msg instead of forge msg on IRC -> Zulip. 2019-01-16 16:27:52 -08:00
rht a5bc4b716c bridge_with_irc: Add command line arg to specify stream. 2019-01-16 16:27:52 -08:00
Eeshan Garg ed6c797d19 pypi: Release version 0.5.7. 2019-01-16 20:50:46 -03:30
neiljp (Neil Pilgrim) eb0e150a71 api: Add Optional timeout parameter to deregister. 2019-01-14 19:24:08 -08:00
neiljp (Neil Pilgrim) f858e48468 api: Add timeout parameter to do_api_query and call_endpoint. 2019-01-14 19:24:08 -08:00
Roger Souza 3f2b11c345 api: Implement POST /realm/emoji<emoji_name>. 2018-12-20 17:49:31 -03:30
Eeshan Garg d478c91965 pypi: Release version 0.5.6. 2018-12-17 17:07:32 -03:30
Maxim Vov d68bc7eada twitter: Add --excluded-users and --excluded-terms options.
This makes it easy to filter out an users/terms that are effectively
spam for your use case.
2018-12-13 14:11:20 -08:00
Eeshan Garg 09deda9466 pypi: Release version 0.5.5. 2018-09-25 22:36:57 -02:30
Eeshan Garg 6e443b6d23 zulip_trello.py: Print error if requests isn't installed. 2018-09-25 22:28:25 -02:30
Eeshan Garg 71a15bd89e integrations/trello: Make the zulip_trello script self-contained.
A few users have complained about how hard it is to find the
Trello script on their systems after installing the `zulip`
package. Rishi and I decided that we should instead just ask
the users to download the script directly and run it without
having to install the `zulip` package.

This commit also ensures that the script can be run on both
py2 and py3.
2018-09-25 22:28:25 -02:30
Eeshan Garg 5210e79dbd integrations/trello: Stop logging to CSV file in Trello script.
The information logged to the CSV file is largely redundant, since
the ID of the webhook is already printed to the screen once a
webhook is setup correctly.

Since this is a script that the user is required to run
once, we should minimize its reliance on external files as much
as possible. This makes it easier to run the script when one
is SSH-ing into a server and doesn't really care about where
the script lives, for instance.
2018-09-25 22:28:25 -02:30
Eeshan Garg 1de6613825 integrations/trello: Stop using config files in the Trello script.
A few users have complained about how hard it is to find the
Trello script on their systems after installing the `zulip`
package. One way to solve this issue is to make the Trello
script a part of the exported console scripts in the zulip
package, which would mean that the user would not have to
navigate to a particular directory in order to find the script,
but could run it from a terminal directly.

However, to make this happen, we need to minimize the script's
reliance on external configuration files, because we don't want
the user to have to figure out where the config file lives.
2018-09-25 22:28:25 -02:30
Eeshan Garg 048fa79a7c pypi: Release version 0.5.4.
Starting now, we now also have a CHANGELOG to record major changes
to the zulip package.
2018-08-31 17:25:55 -02:30
Yago González 256a17fa94 api: Rename "get_presence" to "get_user_presence".
Given that this method fetches the presence status for a single user,
the "get_presence" name should be reserved for the endpoint that gets
the presence for all users.
2018-08-28 11:28:35 -07:00
Roman Godov d02dbbcf75 api: Implement GET /user_groups. 2018-08-27 18:39:27 -02:30
Yago González bf752a860c api: Implement DELETE /streams/<stream_id>. 2018-08-27 18:36:12 -02:30
Eeshan Garg 6151f2db40 pypi: Release version 0.5.3. 2018-08-17 22:21:01 -02:30
Yago González 7dfecf5577 api: Implement DELETE /realm/filters/<filter_id>. 2018-08-14 10:54:18 -02:30
Yago González b2de1e8e67 api: Implement POST /realm/filters. 2018-08-14 10:54:18 -02:30
Yago González ac697026b1 api: Implement GET /realm/filters. 2018-08-14 10:54:18 -02:30
Yago González 5747e76c08 api: Make all endpoint paths relative.
Most of the endpoints we call in the bindings are put relative to the
API's root. These two were absolute paths (i.e. they had a leading
slash), so it has been changed for consistency.
2018-08-14 10:54:18 -02:30
Yago González c480657952 api: Implement POST /user_groups/<user_group_id>/members. 2018-08-14 10:51:50 -02:30
Yago González 8dffb18216 api: Implement DELETE /user_groups/<user_group_id>. 2018-08-14 10:51:50 -02:30
Yago González 851eb1b3bb api: Implement PATCH /user_groups/<user_group_id>. 2018-08-14 10:51:50 -02:30
Yago González c6b123016e api: Implement PATCH /settings/notifications. 2018-08-13 11:27:32 -07:00
Yago González 330fc4783e api: Implement POST /mark_topic_as_read. 2018-08-13 11:27:16 -07:00
Yago González 4ab53c9073 api: Implement POST /mark_stream_as_read. 2018-08-13 11:27:16 -07:00
Yago González ac399d895d api: Implement POST /mark_all_as_read. 2018-08-13 11:27:16 -07:00