From 77c2452813432139bb5bc7b64b70ae70353cedcf Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 29 Mar 2013 15:43:48 -0400 Subject: [PATCH] Make the API bindings method for removing subscriptions have the same name we use in our example (imported from commit de330caa997a02a9122f9d1d9fa0a3891f18f99f) --- humbug/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/humbug/__init__.py b/humbug/__init__.py index e68438e..27c86c1 100644 --- a/humbug/__init__.py +++ b/humbug/__init__.py @@ -263,7 +263,7 @@ class Client(object): def _mk_subs(streams): return {'subscriptions': streams} -def _mk_del_subs(streams): +def _mk_rm_subs(streams): return {'delete': streams} def _mk_events(event_types=None): @@ -280,4 +280,4 @@ Client._register('get_public_streams', method='GET', url='streams') Client._register('get_members', method='GET', url='users') Client._register('list_subscriptions', method='GET', url='users/me/subscriptions') Client._register('add_subscriptions', url='users/me/subscriptions', make_request=_mk_subs) -Client._register('delete_subscriptions', method='PATCH', url='users/me/subscriptions', make_request=_mk_del_subs) +Client._register('remove_subscriptions', method='PATCH', url='users/me/subscriptions', make_request=_mk_rm_subs)