Skip to content

Commit 1778705

Browse files
author
Guillaume Badi
committed
readme fix; unecessary capitalize
1 parent 49e8f5f commit 1778705

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ result = mailjet.sender.post(data={'email': '[email protected]'})
4343
## Combine an resource with an action
4444
``` python
4545
# Get the contact lists of contact #2
46-
result = mailjet.Contact_getcontactslists(id=2)
46+
result = mailjet.contact_getcontactslists.get(id=2)
4747
```

mailjet/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, auth=None, config=Config()):
6161

6262
def __getattr__(self, name):
6363
split = name.split('_')
64-
name = split[0].capitalize()
64+
name = split[0]
6565
action = None
6666
if (len(split) > 1):
6767
action = split[1]

0 commit comments

Comments
 (0)