Skip to content

Commit 2a73791

Browse files
julienbourdeauaseure
authored andcommitted
fix(keys): Deprecate Client::add_api_key_acl for Client::add_api_key
Fix #359
1 parent fedc6a6 commit 2a73791

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

algoliasearch/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,14 @@ def get_user_key_acl(self, key):
372372
"""Use `get_api_key_acl`"""
373373
return self.get_api_key_acl(key)
374374

375+
@deprecated
375376
def get_api_key_acl(self, key, request_options=None):
377+
"""Use `get_api_key`"""
378+
return self.get_api_key(key, request_options)
379+
380+
def get_api_key(self, api_key, request_options=None):
376381
"""'Get ACL of an api key."""
377-
path = '/1/keys/%s' % key
382+
path = '/1/keys/%s' % api_key
378383
return self._req(True, path, 'GET', request_options)
379384

380385
@deprecated

0 commit comments

Comments
 (0)