Skip to content

Commit ae97c52

Browse files
committed
docs: Readme update
1 parent b1a84cd commit ae97c52

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: Readme.md

+16
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ For more information how to obtain an API key visit the [following link](https:/
3737
- [List all segments](#list-all-segments)
3838
- [Update a segment](#update-a-segment)
3939
- [Delete a segment](#delete-a-segment)
40+
- [Get segment information](#get-segment-information)
4041
- [Get subscribers belonging to a segment](#get-subscribers-belonging-to-a-segment)
4142
- [Fields](#fields)
4243
- [List all fields](#list-all-fields)
@@ -347,6 +348,21 @@ segment_id = 123456
347348
response = client.segments.delete(segment_id)
348349
```
349350

351+
### Get segment information
352+
<a name="get-segment-information"></a>
353+
354+
```python
355+
import mailerlite as MailerLite
356+
357+
client = MailerLite.Client({
358+
'api_key': 'your-api-key'
359+
})
360+
361+
segment_id = 123456
362+
363+
response = client.segments.get(segment_id, limit=10, filter={'status': 'active'})
364+
```
365+
350366
### Get subscribers belonging to a segment
351367
<a name="get-subscribers-belonging-to-a-segment"></a>
352368

0 commit comments

Comments
 (0)