Skip to content

Commit 65b0bb1

Browse files
committed
update readme and test to use url instead of callback_url
1 parent a00b2f0 commit 65b0bb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ response.id
7171

7272
# you can optionally pass in a callback url that we'll POST to when the
7373
# batch is complete.
74-
response = client.batch(emails, {'callback_url': 'https://emailable.com/'})
74+
response = client.batch(emails, {'url': 'https://emailable.com/'})
7575
```
7676

7777
#### Get the status / results of a batch

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def test_batch_creation(self):
5858
5959
)
6060
self.assertIsNotNone(response.id)
61-
61+
6262
def test_batch_creation_with_params(self):
6363
with self.assertRaises(emailable.error.ClientError):
6464
self.client.batch(
6565
66-
{'callback_url': '[email protected]', 'simulate': 'generic_error'}
66+
{'url': '[email protected]', 'simulate': 'generic_error'}
6767
)
6868

6969
def test_batch_status(self):

0 commit comments

Comments
 (0)