Skip to content

Commit

Permalink
docs: Added documentation about batch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
igorhrcek committed Dec 5, 2024
1 parent 0fc9118 commit 2dbfb8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,21 @@ response = client.forms.get_subscribers(form_id, page=1, limit=10, filter={'stat
### Create a new batch
<a name="create-a-new-batch"></a>

```python
import mailerlite as MailerLite

client = MailerLite.Client({
'api_key': 'your-api-key'
})

params = [
{"method": "GET", "path": "api/subscribers/list"},
{"method": "GET", "path": "api/campaigns/list"},
]

response = self.client.batches.request(params)
```

## Webhooks
<a name="webhooks"></a>

Expand Down

0 comments on commit 2dbfb8c

Please sign in to comment.