Skip to content

Commit 8338c2f

Browse files
committed
Remane apikey into api_key (#93)
1 parent 2f3d83f commit 8338c2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

meilisearch/_httprequests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class HttpRequests:
99
def __init__(self, config):
1010
self.config = config
1111
self.headers = {
12-
'X-Meili-Api-Key': self.config.apikey,
12+
'X-Meili-Api-Key': self.config.api_key,
1313
'Content-Type': 'application/json'
1414
}
1515

meilisearch/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ class Paths():
2323
accept_new_fields = 'accept-new-fields'
2424
attributes_for_faceting = 'attributes-for-faceting'
2525

26-
def __init__(self, url, apikey=None):
26+
def __init__(self, url, api_key=None):
2727
"""
2828
Parameters
2929
----------
3030
url : str
3131
The url to the MeiliSearch API (ex: http://localhost:7700)
32-
apikey : str
32+
api_key : str
3333
The optional API key to access MeiliSearch
3434
"""
3535

3636
self.url = url
37-
self.apikey = apikey
37+
self.api_key = api_key
3838
self.paths = self.Paths()

0 commit comments

Comments
 (0)