Skip to content

Commit

Permalink
Merge pull request #52 from suda/patch-1
Browse files Browse the repository at this point in the history
Support V4 API
  • Loading branch information
diskovod authored Oct 20, 2020
2 parents 4288be9 + 9392789 commit 0309a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailjet_rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __getitem__(self, key):
elif key.lower() == 'batchjob_csverror':
url = urljoin(url, 'DATA/')
headers['Content-type'] = 'text/csv'
elif key.lower() != 'send':
elif key.lower() != 'send' and self.version != 'v4':
url = urljoin(url, 'REST/')
url = url + key.split('_')[0].lower()
return url, headers
Expand Down

0 comments on commit 0309a4b

Please sign in to comment.