@@ -26,6 +26,11 @@ This directory contains comprehensive examples for using the Devo Global Communi
2626
2727### 👥 Management Resources
2828- ** ` contacts_example.py ` ** - 🚧 ** Placeholder** (Contact management)
29+ - ** ` contact_groups_example.py ` ** - ✅ ** Complete Contact Groups API implementation**
30+ - CRUD operations for contact groups
31+ - Bulk operations and contact transfer
32+ - Search and pagination features
33+ - Metadata management and workflow examples
2934
3035## 🚀 Getting Started
3136
@@ -66,6 +71,9 @@ python examples/rcs_example.py
6671python examples/email_example.py
6772python examples/whatsapp_example.py
6873python examples/contacts_example.py
74+
75+ # Contact groups functionality (fully implemented)
76+ python examples/contact_groups_example.py
6977```
7078
7179## 🌐 Omni-channel Messaging Examples (Fully Implemented)
@@ -145,6 +153,73 @@ The following examples show the structure and planned functionality but are not
145153- ** RCS** : Rich messaging, cards, carousels, capability checks
146154- ** Contacts** : CRUD operations, contact management
147155
156+ ## 📁 Contact Groups Examples (Fully Implemented)
157+
158+ The contact groups resource is fully implemented with all CRUD operations:
159+
160+ ### 🔧 Available Functions
161+ 1 . ** List Groups** - ` client.contact_groups.list() `
162+ - Uses GET ` /api/v1/contacts-groups `
163+ - Pagination and search support
164+ - Field filtering capabilities
165+
166+ 2 . ** Create Group** - ` client.contact_groups.create() `
167+ - Uses POST ` /api/v1/contacts-groups `
168+ - Metadata and contact assignment
169+ - Validation and error handling
170+
171+ 3 . ** Update Group** - ` client.contact_groups.update() `
172+ - Uses PUT ` /api/v1/contacts-groups/{group_id} `
173+ - Partial updates with metadata
174+ - Flexible field modification
175+
176+ 4 . ** Get Group** - ` client.contact_groups.get_by_id() `
177+ - Uses GET ` /api/v1/contacts-groups/{group_id} `
178+ - Complete group information retrieval
179+
180+ 5 . ** Delete Group** - ` client.contact_groups.delete_by_id() `
181+ - Uses DELETE ` /api/v1/contacts-groups/{group_id} `
182+ - Individual group deletion with approval
183+
184+ 6 . ** Bulk Delete** - ` client.contact_groups.delete_bulk() `
185+ - Uses DELETE ` /api/v1/contacts-groups `
186+ - Multiple group deletion with contact transfer
187+
188+ 7 . ** Search Groups** - ` client.contact_groups.search() `
189+ - Uses GET ` /api/v1/contacts-groups `
190+ - Advanced search with field filtering
191+
192+ ### 💡 Key Features
193+ - ** Complete CRUD Operations** : Full lifecycle management
194+ - ** Bulk Operations** : Efficient multi-group operations
195+ - ** Contact Transfer** : Safe deletion with contact preservation
196+ - ** Metadata Support** : Custom metadata for business logic
197+ - ** Search & Filter** : Advanced query capabilities
198+ - ** Pagination** : Efficient large dataset handling
199+
200+ ### 📝 Example Usage
201+ ``` python
202+ from devo_global_comms_python.models.contact_groups import CreateContactsGroupDto
203+
204+ # Create new contact group
205+ group_data = CreateContactsGroupDto(
206+ name = " VIP Customers" ,
207+ description = " High-value customers" ,
208+ contact_ids = [" contact1" , " contact2" ],
209+ metadata = {" priority" : " high" }
210+ )
211+ group = client.contact_groups.create(group_data)
212+
213+ # List with pagination
214+ groups = client.contact_groups.list(page = 1 , limit = 10 , search = " VIP" )
215+
216+ # Search groups
217+ search_results = client.contact_groups.search(
218+ query = " priority" ,
219+ fields = [" name" , " description" ]
220+ )
221+ ```
222+
148223## 🔧 Configuration Notes
149224
150225### Phone Numbers
0 commit comments