late-sdk 0.0.83 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -0
  3. data/docs/AddWhatsAppGroupParticipantsRequest.md +18 -0
  4. data/docs/ApproveWhatsAppGroupJoinRequestsRequest.md +18 -0
  5. data/docs/CreateWhatsAppGroupChat201Response.md +20 -0
  6. data/docs/CreateWhatsAppGroupChat201ResponseGroup.md +20 -0
  7. data/docs/CreateWhatsAppGroupChatRequest.md +24 -0
  8. data/docs/CreateWhatsAppGroupInviteLink200Response.md +20 -0
  9. data/docs/GetWhatsAppGroupChat200Response.md +20 -0
  10. data/docs/GetWhatsAppGroupChat200ResponseGroup.md +32 -0
  11. data/docs/GetWhatsAppGroupChat200ResponseGroupParticipantsInner.md +20 -0
  12. data/docs/ListWhatsAppGroupChats200Response.md +20 -0
  13. data/docs/ListWhatsAppGroupChats200ResponseGroupsInner.md +22 -0
  14. data/docs/ListWhatsAppGroupChats200ResponsePaging.md +18 -0
  15. data/docs/ListWhatsAppGroupChats200ResponsePagingCursors.md +20 -0
  16. data/docs/ListWhatsAppGroupJoinRequests200Response.md +20 -0
  17. data/docs/ListWhatsAppGroupJoinRequests200ResponseJoinRequestsInner.md +20 -0
  18. data/docs/PostsApi.md +72 -0
  19. data/docs/RejectWhatsAppGroupJoinRequestsRequest.md +18 -0
  20. data/docs/RemoveWhatsAppGroupParticipantsRequest.md +18 -0
  21. data/docs/UpdatePostMetadata200Response.md +22 -0
  22. data/docs/UpdatePostMetadataRequest.md +28 -0
  23. data/docs/UpdateWhatsAppGroupChatRequest.md +22 -0
  24. data/docs/WhatsAppApi.md +958 -154
  25. data/lib/late-sdk/api/posts_api.rb +74 -0
  26. data/lib/late-sdk/api/whats_app_api.rb +945 -118
  27. data/lib/late-sdk/models/add_whats_app_group_participants_request.rb +176 -0
  28. data/lib/late-sdk/models/approve_whats_app_group_join_requests_request.rb +167 -0
  29. data/lib/late-sdk/models/create_whats_app_group_chat201_response.rb +156 -0
  30. data/lib/late-sdk/models/create_whats_app_group_chat201_response_group.rb +156 -0
  31. data/lib/late-sdk/models/create_whats_app_group_chat_request.rb +274 -0
  32. data/lib/late-sdk/models/create_whats_app_group_invite_link200_response.rb +156 -0
  33. data/lib/late-sdk/models/get_whats_app_group_chat200_response.rb +156 -0
  34. data/lib/late-sdk/models/get_whats_app_group_chat200_response_group.rb +213 -0
  35. data/lib/late-sdk/models/get_whats_app_group_chat200_response_group_participants_inner.rb +157 -0
  36. data/lib/late-sdk/models/list_whats_app_group_chats200_response.rb +158 -0
  37. data/lib/late-sdk/models/list_whats_app_group_chats200_response_groups_inner.rb +168 -0
  38. data/lib/late-sdk/models/list_whats_app_group_chats200_response_paging.rb +147 -0
  39. data/lib/late-sdk/models/list_whats_app_group_chats200_response_paging_cursors.rb +156 -0
  40. data/lib/late-sdk/models/list_whats_app_group_join_requests200_response.rb +158 -0
  41. data/lib/late-sdk/models/list_whats_app_group_join_requests200_response_join_requests_inner.rb +158 -0
  42. data/lib/late-sdk/models/reject_whats_app_group_join_requests_request.rb +167 -0
  43. data/lib/late-sdk/models/remove_whats_app_group_participants_request.rb +167 -0
  44. data/lib/late-sdk/models/update_post_metadata200_response.rb +167 -0
  45. data/lib/late-sdk/models/update_post_metadata_request.rb +272 -0
  46. data/lib/late-sdk/models/update_whats_app_group_chat_request.rb +237 -0
  47. data/lib/late-sdk/version.rb +1 -1
  48. data/lib/late-sdk.rb +20 -0
  49. data/openapi.yaml +448 -0
  50. data/spec/api/posts_api_spec.rb +13 -0
  51. data/spec/api/whats_app_api_spec.rb +148 -0
  52. data/spec/models/add_whats_app_group_participants_request_spec.rb +36 -0
  53. data/spec/models/approve_whats_app_group_join_requests_request_spec.rb +36 -0
  54. data/spec/models/create_whats_app_group_chat201_response_group_spec.rb +42 -0
  55. data/spec/models/create_whats_app_group_chat201_response_spec.rb +42 -0
  56. data/spec/models/create_whats_app_group_chat_request_spec.rb +58 -0
  57. data/spec/models/create_whats_app_group_invite_link200_response_spec.rb +42 -0
  58. data/spec/models/get_whats_app_group_chat200_response_group_participants_inner_spec.rb +42 -0
  59. data/spec/models/get_whats_app_group_chat200_response_group_spec.rb +78 -0
  60. data/spec/models/get_whats_app_group_chat200_response_spec.rb +42 -0
  61. data/spec/models/list_whats_app_group_chats200_response_groups_inner_spec.rb +48 -0
  62. data/spec/models/list_whats_app_group_chats200_response_paging_cursors_spec.rb +42 -0
  63. data/spec/models/list_whats_app_group_chats200_response_paging_spec.rb +36 -0
  64. data/spec/models/list_whats_app_group_chats200_response_spec.rb +42 -0
  65. data/spec/models/list_whats_app_group_join_requests200_response_join_requests_inner_spec.rb +42 -0
  66. data/spec/models/list_whats_app_group_join_requests200_response_spec.rb +42 -0
  67. data/spec/models/reject_whats_app_group_join_requests_request_spec.rb +36 -0
  68. data/spec/models/remove_whats_app_group_participants_request_spec.rb +36 -0
  69. data/spec/models/update_post_metadata200_response_spec.rb +48 -0
  70. data/spec/models/update_post_metadata_request_spec.rb +74 -0
  71. data/spec/models/update_whats_app_group_chat_request_spec.rb +52 -0
  72. data/zernio-sdk-0.0.85.gem +0 -0
  73. metadata +716 -636
  74. data/zernio-sdk-0.0.83.gem +0 -0
data/docs/WhatsAppApi.md CHANGED
@@ -5,15 +5,20 @@ All URIs are relative to *https://zernio.com/api*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**add_whats_app_broadcast_recipients**](WhatsAppApi.md#add_whats_app_broadcast_recipients) | **PATCH** /v1/whatsapp/broadcasts/{broadcastId}/recipients | Add recipients |
8
+ | [**add_whats_app_group_participants**](WhatsAppApi.md#add_whats_app_group_participants) | **POST** /v1/whatsapp/wa-groups/{groupId}/participants | Add participants |
9
+ | [**approve_whats_app_group_join_requests**](WhatsAppApi.md#approve_whats_app_group_join_requests) | **POST** /v1/whatsapp/wa-groups/{groupId}/join-requests | Approve join requests |
8
10
  | [**bulk_delete_whats_app_contacts**](WhatsAppApi.md#bulk_delete_whats_app_contacts) | **DELETE** /v1/whatsapp/contacts/bulk | Bulk delete contacts |
9
11
  | [**bulk_update_whats_app_contacts**](WhatsAppApi.md#bulk_update_whats_app_contacts) | **POST** /v1/whatsapp/contacts/bulk | Bulk update contacts |
10
12
  | [**cancel_whats_app_broadcast_schedule**](WhatsAppApi.md#cancel_whats_app_broadcast_schedule) | **DELETE** /v1/whatsapp/broadcasts/{broadcastId}/schedule | Cancel scheduled broadcast |
11
13
  | [**create_whats_app_broadcast**](WhatsAppApi.md#create_whats_app_broadcast) | **POST** /v1/whatsapp/broadcasts | Create broadcast |
12
14
  | [**create_whats_app_contact**](WhatsAppApi.md#create_whats_app_contact) | **POST** /v1/whatsapp/contacts | Create contact |
15
+ | [**create_whats_app_group_chat**](WhatsAppApi.md#create_whats_app_group_chat) | **POST** /v1/whatsapp/wa-groups | Create group |
16
+ | [**create_whats_app_group_invite_link**](WhatsAppApi.md#create_whats_app_group_invite_link) | **POST** /v1/whatsapp/wa-groups/{groupId}/invite-link | Create invite link |
13
17
  | [**create_whats_app_template**](WhatsAppApi.md#create_whats_app_template) | **POST** /v1/whatsapp/templates | Create template |
14
18
  | [**delete_whats_app_broadcast**](WhatsAppApi.md#delete_whats_app_broadcast) | **DELETE** /v1/whatsapp/broadcasts/{broadcastId} | Delete broadcast |
15
19
  | [**delete_whats_app_contact**](WhatsAppApi.md#delete_whats_app_contact) | **DELETE** /v1/whatsapp/contacts/{contactId} | Delete contact |
16
20
  | [**delete_whats_app_group**](WhatsAppApi.md#delete_whats_app_group) | **DELETE** /v1/whatsapp/groups | Delete group |
21
+ | [**delete_whats_app_group_chat**](WhatsAppApi.md#delete_whats_app_group_chat) | **DELETE** /v1/whatsapp/wa-groups/{groupId} | Delete group |
17
22
  | [**delete_whats_app_template**](WhatsAppApi.md#delete_whats_app_template) | **DELETE** /v1/whatsapp/templates/{templateName} | Delete template |
18
23
  | [**get_whats_app_broadcast**](WhatsAppApi.md#get_whats_app_broadcast) | **GET** /v1/whatsapp/broadcasts/{broadcastId} | Get broadcast |
19
24
  | [**get_whats_app_broadcast_recipients**](WhatsAppApi.md#get_whats_app_broadcast_recipients) | **GET** /v1/whatsapp/broadcasts/{broadcastId}/recipients | List recipients |
@@ -22,11 +27,16 @@ All URIs are relative to *https://zernio.com/api*
22
27
  | [**get_whats_app_contact**](WhatsAppApi.md#get_whats_app_contact) | **GET** /v1/whatsapp/contacts/{contactId} | Get contact |
23
28
  | [**get_whats_app_contacts**](WhatsAppApi.md#get_whats_app_contacts) | **GET** /v1/whatsapp/contacts | List contacts |
24
29
  | [**get_whats_app_display_name**](WhatsAppApi.md#get_whats_app_display_name) | **GET** /v1/whatsapp/business-profile/display-name | Get display name and review status |
30
+ | [**get_whats_app_group_chat**](WhatsAppApi.md#get_whats_app_group_chat) | **GET** /v1/whatsapp/wa-groups/{groupId} | Get group info |
25
31
  | [**get_whats_app_groups**](WhatsAppApi.md#get_whats_app_groups) | **GET** /v1/whatsapp/groups | List contact groups |
26
32
  | [**get_whats_app_template**](WhatsAppApi.md#get_whats_app_template) | **GET** /v1/whatsapp/templates/{templateName} | Get template |
27
33
  | [**get_whats_app_templates**](WhatsAppApi.md#get_whats_app_templates) | **GET** /v1/whatsapp/templates | List templates |
28
34
  | [**import_whats_app_contacts**](WhatsAppApi.md#import_whats_app_contacts) | **POST** /v1/whatsapp/contacts/import | Bulk import contacts |
35
+ | [**list_whats_app_group_chats**](WhatsAppApi.md#list_whats_app_group_chats) | **GET** /v1/whatsapp/wa-groups | List active groups |
36
+ | [**list_whats_app_group_join_requests**](WhatsAppApi.md#list_whats_app_group_join_requests) | **GET** /v1/whatsapp/wa-groups/{groupId}/join-requests | List join requests |
37
+ | [**reject_whats_app_group_join_requests**](WhatsAppApi.md#reject_whats_app_group_join_requests) | **DELETE** /v1/whatsapp/wa-groups/{groupId}/join-requests | Reject join requests |
29
38
  | [**remove_whats_app_broadcast_recipients**](WhatsAppApi.md#remove_whats_app_broadcast_recipients) | **DELETE** /v1/whatsapp/broadcasts/{broadcastId}/recipients | Remove recipients |
39
+ | [**remove_whats_app_group_participants**](WhatsAppApi.md#remove_whats_app_group_participants) | **DELETE** /v1/whatsapp/wa-groups/{groupId}/participants | Remove participants |
30
40
  | [**rename_whats_app_group**](WhatsAppApi.md#rename_whats_app_group) | **POST** /v1/whatsapp/groups | Rename group |
31
41
  | [**schedule_whats_app_broadcast**](WhatsAppApi.md#schedule_whats_app_broadcast) | **POST** /v1/whatsapp/broadcasts/{broadcastId}/schedule | Schedule broadcast |
32
42
  | [**send_whats_app_broadcast**](WhatsAppApi.md#send_whats_app_broadcast) | **POST** /v1/whatsapp/broadcasts/{broadcastId}/send | Send broadcast |
@@ -34,6 +44,7 @@ All URIs are relative to *https://zernio.com/api*
34
44
  | [**update_whats_app_business_profile**](WhatsAppApi.md#update_whats_app_business_profile) | **POST** /v1/whatsapp/business-profile | Update business profile |
35
45
  | [**update_whats_app_contact**](WhatsAppApi.md#update_whats_app_contact) | **PUT** /v1/whatsapp/contacts/{contactId} | Update contact |
36
46
  | [**update_whats_app_display_name**](WhatsAppApi.md#update_whats_app_display_name) | **POST** /v1/whatsapp/business-profile/display-name | Request display name change |
47
+ | [**update_whats_app_group_chat**](WhatsAppApi.md#update_whats_app_group_chat) | **POST** /v1/whatsapp/wa-groups/{groupId} | Update group settings |
37
48
  | [**update_whats_app_template**](WhatsAppApi.md#update_whats_app_template) | **PATCH** /v1/whatsapp/templates/{templateName} | Update template |
38
49
  | [**upload_whats_app_profile_photo**](WhatsAppApi.md#upload_whats_app_profile_photo) | **POST** /v1/whatsapp/business-profile/photo | Upload profile picture |
39
50
 
@@ -109,6 +120,152 @@ end
109
120
  - **Accept**: application/json
110
121
 
111
122
 
123
+ ## add_whats_app_group_participants
124
+
125
+ > <UnpublishPost200Response> add_whats_app_group_participants(group_id, account_id, add_whats_app_group_participants_request)
126
+
127
+ Add participants
128
+
129
+ Add participants to a WhatsApp group. Maximum 8 participants per request.
130
+
131
+ ### Examples
132
+
133
+ ```ruby
134
+ require 'time'
135
+ require 'late-sdk'
136
+ # setup authorization
137
+ Late.configure do |config|
138
+ # Configure Bearer authorization (JWT): bearerAuth
139
+ config.access_token = 'YOUR_BEARER_TOKEN'
140
+ end
141
+
142
+ api_instance = Late::WhatsAppApi.new
143
+ group_id = 'group_id_example' # String | Group ID
144
+ account_id = 'account_id_example' # String | WhatsApp social account ID
145
+ add_whats_app_group_participants_request = Late::AddWhatsAppGroupParticipantsRequest.new({phone_numbers: ['phone_numbers_example']}) # AddWhatsAppGroupParticipantsRequest |
146
+
147
+ begin
148
+ # Add participants
149
+ result = api_instance.add_whats_app_group_participants(group_id, account_id, add_whats_app_group_participants_request)
150
+ p result
151
+ rescue Late::ApiError => e
152
+ puts "Error when calling WhatsAppApi->add_whats_app_group_participants: #{e}"
153
+ end
154
+ ```
155
+
156
+ #### Using the add_whats_app_group_participants_with_http_info variant
157
+
158
+ This returns an Array which contains the response data, status code and headers.
159
+
160
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> add_whats_app_group_participants_with_http_info(group_id, account_id, add_whats_app_group_participants_request)
161
+
162
+ ```ruby
163
+ begin
164
+ # Add participants
165
+ data, status_code, headers = api_instance.add_whats_app_group_participants_with_http_info(group_id, account_id, add_whats_app_group_participants_request)
166
+ p status_code # => 2xx
167
+ p headers # => { ... }
168
+ p data # => <UnpublishPost200Response>
169
+ rescue Late::ApiError => e
170
+ puts "Error when calling WhatsAppApi->add_whats_app_group_participants_with_http_info: #{e}"
171
+ end
172
+ ```
173
+
174
+ ### Parameters
175
+
176
+ | Name | Type | Description | Notes |
177
+ | ---- | ---- | ----------- | ----- |
178
+ | **group_id** | **String** | Group ID | |
179
+ | **account_id** | **String** | WhatsApp social account ID | |
180
+ | **add_whats_app_group_participants_request** | [**AddWhatsAppGroupParticipantsRequest**](AddWhatsAppGroupParticipantsRequest.md) | | |
181
+
182
+ ### Return type
183
+
184
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
185
+
186
+ ### Authorization
187
+
188
+ [bearerAuth](../README.md#bearerAuth)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: application/json
193
+ - **Accept**: application/json
194
+
195
+
196
+ ## approve_whats_app_group_join_requests
197
+
198
+ > <UnpublishPost200Response> approve_whats_app_group_join_requests(group_id, account_id, approve_whats_app_group_join_requests_request)
199
+
200
+ Approve join requests
201
+
202
+ Approve pending join requests for a WhatsApp group.
203
+
204
+ ### Examples
205
+
206
+ ```ruby
207
+ require 'time'
208
+ require 'late-sdk'
209
+ # setup authorization
210
+ Late.configure do |config|
211
+ # Configure Bearer authorization (JWT): bearerAuth
212
+ config.access_token = 'YOUR_BEARER_TOKEN'
213
+ end
214
+
215
+ api_instance = Late::WhatsAppApi.new
216
+ group_id = 'group_id_example' # String | Group ID
217
+ account_id = 'account_id_example' # String | WhatsApp social account ID
218
+ approve_whats_app_group_join_requests_request = Late::ApproveWhatsAppGroupJoinRequestsRequest.new({phone_numbers: ['phone_numbers_example']}) # ApproveWhatsAppGroupJoinRequestsRequest |
219
+
220
+ begin
221
+ # Approve join requests
222
+ result = api_instance.approve_whats_app_group_join_requests(group_id, account_id, approve_whats_app_group_join_requests_request)
223
+ p result
224
+ rescue Late::ApiError => e
225
+ puts "Error when calling WhatsAppApi->approve_whats_app_group_join_requests: #{e}"
226
+ end
227
+ ```
228
+
229
+ #### Using the approve_whats_app_group_join_requests_with_http_info variant
230
+
231
+ This returns an Array which contains the response data, status code and headers.
232
+
233
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> approve_whats_app_group_join_requests_with_http_info(group_id, account_id, approve_whats_app_group_join_requests_request)
234
+
235
+ ```ruby
236
+ begin
237
+ # Approve join requests
238
+ data, status_code, headers = api_instance.approve_whats_app_group_join_requests_with_http_info(group_id, account_id, approve_whats_app_group_join_requests_request)
239
+ p status_code # => 2xx
240
+ p headers # => { ... }
241
+ p data # => <UnpublishPost200Response>
242
+ rescue Late::ApiError => e
243
+ puts "Error when calling WhatsAppApi->approve_whats_app_group_join_requests_with_http_info: #{e}"
244
+ end
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+ | Name | Type | Description | Notes |
250
+ | ---- | ---- | ----------- | ----- |
251
+ | **group_id** | **String** | Group ID | |
252
+ | **account_id** | **String** | WhatsApp social account ID | |
253
+ | **approve_whats_app_group_join_requests_request** | [**ApproveWhatsAppGroupJoinRequestsRequest**](ApproveWhatsAppGroupJoinRequestsRequest.md) | | |
254
+
255
+ ### Return type
256
+
257
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
258
+
259
+ ### Authorization
260
+
261
+ [bearerAuth](../README.md#bearerAuth)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: application/json
267
+
268
+
112
269
  ## bulk_delete_whats_app_contacts
113
270
 
114
271
  > <BulkDeleteWhatsAppContacts200Response> bulk_delete_whats_app_contacts(bulk_delete_whats_app_contacts_request)
@@ -454,6 +611,146 @@ end
454
611
  - **Accept**: application/json
455
612
 
456
613
 
614
+ ## create_whats_app_group_chat
615
+
616
+ > <CreateWhatsAppGroupChat201Response> create_whats_app_group_chat(create_whats_app_group_chat_request)
617
+
618
+ Create group
619
+
620
+ Create a new WhatsApp group chat. Returns the group ID and optionally an invite link.
621
+
622
+ ### Examples
623
+
624
+ ```ruby
625
+ require 'time'
626
+ require 'late-sdk'
627
+ # setup authorization
628
+ Late.configure do |config|
629
+ # Configure Bearer authorization (JWT): bearerAuth
630
+ config.access_token = 'YOUR_BEARER_TOKEN'
631
+ end
632
+
633
+ api_instance = Late::WhatsAppApi.new
634
+ create_whats_app_group_chat_request = Late::CreateWhatsAppGroupChatRequest.new({account_id: 'account_id_example', subject: 'subject_example'}) # CreateWhatsAppGroupChatRequest |
635
+
636
+ begin
637
+ # Create group
638
+ result = api_instance.create_whats_app_group_chat(create_whats_app_group_chat_request)
639
+ p result
640
+ rescue Late::ApiError => e
641
+ puts "Error when calling WhatsAppApi->create_whats_app_group_chat: #{e}"
642
+ end
643
+ ```
644
+
645
+ #### Using the create_whats_app_group_chat_with_http_info variant
646
+
647
+ This returns an Array which contains the response data, status code and headers.
648
+
649
+ > <Array(<CreateWhatsAppGroupChat201Response>, Integer, Hash)> create_whats_app_group_chat_with_http_info(create_whats_app_group_chat_request)
650
+
651
+ ```ruby
652
+ begin
653
+ # Create group
654
+ data, status_code, headers = api_instance.create_whats_app_group_chat_with_http_info(create_whats_app_group_chat_request)
655
+ p status_code # => 2xx
656
+ p headers # => { ... }
657
+ p data # => <CreateWhatsAppGroupChat201Response>
658
+ rescue Late::ApiError => e
659
+ puts "Error when calling WhatsAppApi->create_whats_app_group_chat_with_http_info: #{e}"
660
+ end
661
+ ```
662
+
663
+ ### Parameters
664
+
665
+ | Name | Type | Description | Notes |
666
+ | ---- | ---- | ----------- | ----- |
667
+ | **create_whats_app_group_chat_request** | [**CreateWhatsAppGroupChatRequest**](CreateWhatsAppGroupChatRequest.md) | | |
668
+
669
+ ### Return type
670
+
671
+ [**CreateWhatsAppGroupChat201Response**](CreateWhatsAppGroupChat201Response.md)
672
+
673
+ ### Authorization
674
+
675
+ [bearerAuth](../README.md#bearerAuth)
676
+
677
+ ### HTTP request headers
678
+
679
+ - **Content-Type**: application/json
680
+ - **Accept**: application/json
681
+
682
+
683
+ ## create_whats_app_group_invite_link
684
+
685
+ > <CreateWhatsAppGroupInviteLink200Response> create_whats_app_group_invite_link(group_id, account_id)
686
+
687
+ Create invite link
688
+
689
+ Create a new invite link for a WhatsApp group. The previous link is revoked.
690
+
691
+ ### Examples
692
+
693
+ ```ruby
694
+ require 'time'
695
+ require 'late-sdk'
696
+ # setup authorization
697
+ Late.configure do |config|
698
+ # Configure Bearer authorization (JWT): bearerAuth
699
+ config.access_token = 'YOUR_BEARER_TOKEN'
700
+ end
701
+
702
+ api_instance = Late::WhatsAppApi.new
703
+ group_id = 'group_id_example' # String | Group ID
704
+ account_id = 'account_id_example' # String | WhatsApp social account ID
705
+
706
+ begin
707
+ # Create invite link
708
+ result = api_instance.create_whats_app_group_invite_link(group_id, account_id)
709
+ p result
710
+ rescue Late::ApiError => e
711
+ puts "Error when calling WhatsAppApi->create_whats_app_group_invite_link: #{e}"
712
+ end
713
+ ```
714
+
715
+ #### Using the create_whats_app_group_invite_link_with_http_info variant
716
+
717
+ This returns an Array which contains the response data, status code and headers.
718
+
719
+ > <Array(<CreateWhatsAppGroupInviteLink200Response>, Integer, Hash)> create_whats_app_group_invite_link_with_http_info(group_id, account_id)
720
+
721
+ ```ruby
722
+ begin
723
+ # Create invite link
724
+ data, status_code, headers = api_instance.create_whats_app_group_invite_link_with_http_info(group_id, account_id)
725
+ p status_code # => 2xx
726
+ p headers # => { ... }
727
+ p data # => <CreateWhatsAppGroupInviteLink200Response>
728
+ rescue Late::ApiError => e
729
+ puts "Error when calling WhatsAppApi->create_whats_app_group_invite_link_with_http_info: #{e}"
730
+ end
731
+ ```
732
+
733
+ ### Parameters
734
+
735
+ | Name | Type | Description | Notes |
736
+ | ---- | ---- | ----------- | ----- |
737
+ | **group_id** | **String** | Group ID | |
738
+ | **account_id** | **String** | WhatsApp social account ID | |
739
+
740
+ ### Return type
741
+
742
+ [**CreateWhatsAppGroupInviteLink200Response**](CreateWhatsAppGroupInviteLink200Response.md)
743
+
744
+ ### Authorization
745
+
746
+ [bearerAuth](../README.md#bearerAuth)
747
+
748
+ ### HTTP request headers
749
+
750
+ - **Content-Type**: Not defined
751
+ - **Accept**: application/json
752
+
753
+
457
754
  ## create_whats_app_template
458
755
 
459
756
  > <CreateWhatsAppTemplate200Response> create_whats_app_template(create_whats_app_template_request)
@@ -730,13 +1027,13 @@ end
730
1027
  - **Accept**: application/json
731
1028
 
732
1029
 
733
- ## delete_whats_app_template
1030
+ ## delete_whats_app_group_chat
734
1031
 
735
- > <UnpublishPost200Response> delete_whats_app_template(template_name, account_id)
1032
+ > <UnpublishPost200Response> delete_whats_app_group_chat(group_id, account_id)
736
1033
 
737
- Delete template
1034
+ Delete group
738
1035
 
739
- Permanently delete a message template by name.
1036
+ Delete a WhatsApp group and remove all participants.
740
1037
 
741
1038
  ### Examples
742
1039
 
@@ -750,33 +1047,33 @@ Late.configure do |config|
750
1047
  end
751
1048
 
752
1049
  api_instance = Late::WhatsAppApi.new
753
- template_name = 'template_name_example' # String | Template name
1050
+ group_id = 'group_id_example' # String | Group ID
754
1051
  account_id = 'account_id_example' # String | WhatsApp social account ID
755
1052
 
756
1053
  begin
757
- # Delete template
758
- result = api_instance.delete_whats_app_template(template_name, account_id)
1054
+ # Delete group
1055
+ result = api_instance.delete_whats_app_group_chat(group_id, account_id)
759
1056
  p result
760
1057
  rescue Late::ApiError => e
761
- puts "Error when calling WhatsAppApi->delete_whats_app_template: #{e}"
1058
+ puts "Error when calling WhatsAppApi->delete_whats_app_group_chat: #{e}"
762
1059
  end
763
1060
  ```
764
1061
 
765
- #### Using the delete_whats_app_template_with_http_info variant
1062
+ #### Using the delete_whats_app_group_chat_with_http_info variant
766
1063
 
767
1064
  This returns an Array which contains the response data, status code and headers.
768
1065
 
769
- > <Array(<UnpublishPost200Response>, Integer, Hash)> delete_whats_app_template_with_http_info(template_name, account_id)
1066
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> delete_whats_app_group_chat_with_http_info(group_id, account_id)
770
1067
 
771
1068
  ```ruby
772
1069
  begin
773
- # Delete template
774
- data, status_code, headers = api_instance.delete_whats_app_template_with_http_info(template_name, account_id)
1070
+ # Delete group
1071
+ data, status_code, headers = api_instance.delete_whats_app_group_chat_with_http_info(group_id, account_id)
775
1072
  p status_code # => 2xx
776
1073
  p headers # => { ... }
777
1074
  p data # => <UnpublishPost200Response>
778
1075
  rescue Late::ApiError => e
779
- puts "Error when calling WhatsAppApi->delete_whats_app_template_with_http_info: #{e}"
1076
+ puts "Error when calling WhatsAppApi->delete_whats_app_group_chat_with_http_info: #{e}"
780
1077
  end
781
1078
  ```
782
1079
 
@@ -784,7 +1081,7 @@ end
784
1081
 
785
1082
  | Name | Type | Description | Notes |
786
1083
  | ---- | ---- | ----------- | ----- |
787
- | **template_name** | **String** | Template name | |
1084
+ | **group_id** | **String** | Group ID | |
788
1085
  | **account_id** | **String** | WhatsApp social account ID | |
789
1086
 
790
1087
  ### Return type
@@ -801,13 +1098,13 @@ end
801
1098
  - **Accept**: application/json
802
1099
 
803
1100
 
804
- ## get_whats_app_broadcast
1101
+ ## delete_whats_app_template
805
1102
 
806
- > <GetWhatsAppBroadcast200Response> get_whats_app_broadcast(broadcast_id)
1103
+ > <UnpublishPost200Response> delete_whats_app_template(template_name, account_id)
807
1104
 
808
- Get broadcast
1105
+ Delete template
809
1106
 
810
- **Deprecated.** Use `GET /v1/broadcasts/{id}` instead. Retrieve detailed information about a single broadcast including delivery statistics.
1107
+ Permanently delete a message template by name.
811
1108
 
812
1109
  ### Examples
813
1110
 
@@ -821,14 +1118,85 @@ Late.configure do |config|
821
1118
  end
822
1119
 
823
1120
  api_instance = Late::WhatsAppApi.new
824
- broadcast_id = 'broadcast_id_example' # String | Broadcast ID
1121
+ template_name = 'template_name_example' # String | Template name
1122
+ account_id = 'account_id_example' # String | WhatsApp social account ID
825
1123
 
826
1124
  begin
827
- # Get broadcast
828
- result = api_instance.get_whats_app_broadcast(broadcast_id)
1125
+ # Delete template
1126
+ result = api_instance.delete_whats_app_template(template_name, account_id)
829
1127
  p result
830
1128
  rescue Late::ApiError => e
831
- puts "Error when calling WhatsAppApi->get_whats_app_broadcast: #{e}"
1129
+ puts "Error when calling WhatsAppApi->delete_whats_app_template: #{e}"
1130
+ end
1131
+ ```
1132
+
1133
+ #### Using the delete_whats_app_template_with_http_info variant
1134
+
1135
+ This returns an Array which contains the response data, status code and headers.
1136
+
1137
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> delete_whats_app_template_with_http_info(template_name, account_id)
1138
+
1139
+ ```ruby
1140
+ begin
1141
+ # Delete template
1142
+ data, status_code, headers = api_instance.delete_whats_app_template_with_http_info(template_name, account_id)
1143
+ p status_code # => 2xx
1144
+ p headers # => { ... }
1145
+ p data # => <UnpublishPost200Response>
1146
+ rescue Late::ApiError => e
1147
+ puts "Error when calling WhatsAppApi->delete_whats_app_template_with_http_info: #{e}"
1148
+ end
1149
+ ```
1150
+
1151
+ ### Parameters
1152
+
1153
+ | Name | Type | Description | Notes |
1154
+ | ---- | ---- | ----------- | ----- |
1155
+ | **template_name** | **String** | Template name | |
1156
+ | **account_id** | **String** | WhatsApp social account ID | |
1157
+
1158
+ ### Return type
1159
+
1160
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
1161
+
1162
+ ### Authorization
1163
+
1164
+ [bearerAuth](../README.md#bearerAuth)
1165
+
1166
+ ### HTTP request headers
1167
+
1168
+ - **Content-Type**: Not defined
1169
+ - **Accept**: application/json
1170
+
1171
+
1172
+ ## get_whats_app_broadcast
1173
+
1174
+ > <GetWhatsAppBroadcast200Response> get_whats_app_broadcast(broadcast_id)
1175
+
1176
+ Get broadcast
1177
+
1178
+ **Deprecated.** Use `GET /v1/broadcasts/{id}` instead. Retrieve detailed information about a single broadcast including delivery statistics.
1179
+
1180
+ ### Examples
1181
+
1182
+ ```ruby
1183
+ require 'time'
1184
+ require 'late-sdk'
1185
+ # setup authorization
1186
+ Late.configure do |config|
1187
+ # Configure Bearer authorization (JWT): bearerAuth
1188
+ config.access_token = 'YOUR_BEARER_TOKEN'
1189
+ end
1190
+
1191
+ api_instance = Late::WhatsAppApi.new
1192
+ broadcast_id = 'broadcast_id_example' # String | Broadcast ID
1193
+
1194
+ begin
1195
+ # Get broadcast
1196
+ result = api_instance.get_whats_app_broadcast(broadcast_id)
1197
+ p result
1198
+ rescue Late::ApiError => e
1199
+ puts "Error when calling WhatsAppApi->get_whats_app_broadcast: #{e}"
832
1200
  end
833
1201
  ```
834
1202
 
@@ -1124,21 +1492,383 @@ rescue Late::ApiError => e
1124
1492
  end
1125
1493
  ```
1126
1494
 
1127
- #### Using the get_whats_app_contact_with_http_info variant
1495
+ #### Using the get_whats_app_contact_with_http_info variant
1496
+
1497
+ This returns an Array which contains the response data, status code and headers.
1498
+
1499
+ > <Array(<GetWhatsAppContact200Response>, Integer, Hash)> get_whats_app_contact_with_http_info(contact_id)
1500
+
1501
+ ```ruby
1502
+ begin
1503
+ # Get contact
1504
+ data, status_code, headers = api_instance.get_whats_app_contact_with_http_info(contact_id)
1505
+ p status_code # => 2xx
1506
+ p headers # => { ... }
1507
+ p data # => <GetWhatsAppContact200Response>
1508
+ rescue Late::ApiError => e
1509
+ puts "Error when calling WhatsAppApi->get_whats_app_contact_with_http_info: #{e}"
1510
+ end
1511
+ ```
1512
+
1513
+ ### Parameters
1514
+
1515
+ | Name | Type | Description | Notes |
1516
+ | ---- | ---- | ----------- | ----- |
1517
+ | **contact_id** | **String** | Contact ID | |
1518
+
1519
+ ### Return type
1520
+
1521
+ [**GetWhatsAppContact200Response**](GetWhatsAppContact200Response.md)
1522
+
1523
+ ### Authorization
1524
+
1525
+ [bearerAuth](../README.md#bearerAuth)
1526
+
1527
+ ### HTTP request headers
1528
+
1529
+ - **Content-Type**: Not defined
1530
+ - **Accept**: application/json
1531
+
1532
+
1533
+ ## get_whats_app_contacts
1534
+
1535
+ > <GetWhatsAppContacts200Response> get_whats_app_contacts(account_id, opts)
1536
+
1537
+ List contacts
1538
+
1539
+ **Deprecated.** Use `GET /v1/contacts?profileId={profileId}` instead. List WhatsApp contacts for an account. Supports filtering by tags, groups, opt-in status, and text search. Returns contacts sorted by name with available filter options.
1540
+
1541
+ ### Examples
1542
+
1543
+ ```ruby
1544
+ require 'time'
1545
+ require 'late-sdk'
1546
+ # setup authorization
1547
+ Late.configure do |config|
1548
+ # Configure Bearer authorization (JWT): bearerAuth
1549
+ config.access_token = 'YOUR_BEARER_TOKEN'
1550
+ end
1551
+
1552
+ api_instance = Late::WhatsAppApi.new
1553
+ account_id = 'account_id_example' # String | WhatsApp social account ID
1554
+ opts = {
1555
+ search: 'search_example', # String | Search contacts by name, phone, email, or company
1556
+ tag: 'tag_example', # String | Filter by tag
1557
+ group: 'group_example', # String | Filter by group
1558
+ opted_in: 'true', # String | Filter by opt-in status
1559
+ limit: 56, # Integer | Maximum results (default 50)
1560
+ skip: 56 # Integer | Offset for pagination
1561
+ }
1562
+
1563
+ begin
1564
+ # List contacts
1565
+ result = api_instance.get_whats_app_contacts(account_id, opts)
1566
+ p result
1567
+ rescue Late::ApiError => e
1568
+ puts "Error when calling WhatsAppApi->get_whats_app_contacts: #{e}"
1569
+ end
1570
+ ```
1571
+
1572
+ #### Using the get_whats_app_contacts_with_http_info variant
1573
+
1574
+ This returns an Array which contains the response data, status code and headers.
1575
+
1576
+ > <Array(<GetWhatsAppContacts200Response>, Integer, Hash)> get_whats_app_contacts_with_http_info(account_id, opts)
1577
+
1578
+ ```ruby
1579
+ begin
1580
+ # List contacts
1581
+ data, status_code, headers = api_instance.get_whats_app_contacts_with_http_info(account_id, opts)
1582
+ p status_code # => 2xx
1583
+ p headers # => { ... }
1584
+ p data # => <GetWhatsAppContacts200Response>
1585
+ rescue Late::ApiError => e
1586
+ puts "Error when calling WhatsAppApi->get_whats_app_contacts_with_http_info: #{e}"
1587
+ end
1588
+ ```
1589
+
1590
+ ### Parameters
1591
+
1592
+ | Name | Type | Description | Notes |
1593
+ | ---- | ---- | ----------- | ----- |
1594
+ | **account_id** | **String** | WhatsApp social account ID | |
1595
+ | **search** | **String** | Search contacts by name, phone, email, or company | [optional] |
1596
+ | **tag** | **String** | Filter by tag | [optional] |
1597
+ | **group** | **String** | Filter by group | [optional] |
1598
+ | **opted_in** | **String** | Filter by opt-in status | [optional] |
1599
+ | **limit** | **Integer** | Maximum results (default 50) | [optional][default to 50] |
1600
+ | **skip** | **Integer** | Offset for pagination | [optional][default to 0] |
1601
+
1602
+ ### Return type
1603
+
1604
+ [**GetWhatsAppContacts200Response**](GetWhatsAppContacts200Response.md)
1605
+
1606
+ ### Authorization
1607
+
1608
+ [bearerAuth](../README.md#bearerAuth)
1609
+
1610
+ ### HTTP request headers
1611
+
1612
+ - **Content-Type**: Not defined
1613
+ - **Accept**: application/json
1614
+
1615
+
1616
+ ## get_whats_app_display_name
1617
+
1618
+ > <GetWhatsAppDisplayName200Response> get_whats_app_display_name(account_id)
1619
+
1620
+ Get display name and review status
1621
+
1622
+ Fetch the current display name and its Meta review status for a WhatsApp Business account. Display name changes require Meta approval and can take 1-3 business days.
1623
+
1624
+ ### Examples
1625
+
1626
+ ```ruby
1627
+ require 'time'
1628
+ require 'late-sdk'
1629
+ # setup authorization
1630
+ Late.configure do |config|
1631
+ # Configure Bearer authorization (JWT): bearerAuth
1632
+ config.access_token = 'YOUR_BEARER_TOKEN'
1633
+ end
1634
+
1635
+ api_instance = Late::WhatsAppApi.new
1636
+ account_id = 'account_id_example' # String | WhatsApp social account ID
1637
+
1638
+ begin
1639
+ # Get display name and review status
1640
+ result = api_instance.get_whats_app_display_name(account_id)
1641
+ p result
1642
+ rescue Late::ApiError => e
1643
+ puts "Error when calling WhatsAppApi->get_whats_app_display_name: #{e}"
1644
+ end
1645
+ ```
1646
+
1647
+ #### Using the get_whats_app_display_name_with_http_info variant
1648
+
1649
+ This returns an Array which contains the response data, status code and headers.
1650
+
1651
+ > <Array(<GetWhatsAppDisplayName200Response>, Integer, Hash)> get_whats_app_display_name_with_http_info(account_id)
1652
+
1653
+ ```ruby
1654
+ begin
1655
+ # Get display name and review status
1656
+ data, status_code, headers = api_instance.get_whats_app_display_name_with_http_info(account_id)
1657
+ p status_code # => 2xx
1658
+ p headers # => { ... }
1659
+ p data # => <GetWhatsAppDisplayName200Response>
1660
+ rescue Late::ApiError => e
1661
+ puts "Error when calling WhatsAppApi->get_whats_app_display_name_with_http_info: #{e}"
1662
+ end
1663
+ ```
1664
+
1665
+ ### Parameters
1666
+
1667
+ | Name | Type | Description | Notes |
1668
+ | ---- | ---- | ----------- | ----- |
1669
+ | **account_id** | **String** | WhatsApp social account ID | |
1670
+
1671
+ ### Return type
1672
+
1673
+ [**GetWhatsAppDisplayName200Response**](GetWhatsAppDisplayName200Response.md)
1674
+
1675
+ ### Authorization
1676
+
1677
+ [bearerAuth](../README.md#bearerAuth)
1678
+
1679
+ ### HTTP request headers
1680
+
1681
+ - **Content-Type**: Not defined
1682
+ - **Accept**: application/json
1683
+
1684
+
1685
+ ## get_whats_app_group_chat
1686
+
1687
+ > <GetWhatsAppGroupChat200Response> get_whats_app_group_chat(group_id, account_id)
1688
+
1689
+ Get group info
1690
+
1691
+ Retrieve metadata about a WhatsApp group including subject, description, participants, and settings.
1692
+
1693
+ ### Examples
1694
+
1695
+ ```ruby
1696
+ require 'time'
1697
+ require 'late-sdk'
1698
+ # setup authorization
1699
+ Late.configure do |config|
1700
+ # Configure Bearer authorization (JWT): bearerAuth
1701
+ config.access_token = 'YOUR_BEARER_TOKEN'
1702
+ end
1703
+
1704
+ api_instance = Late::WhatsAppApi.new
1705
+ group_id = 'group_id_example' # String | Group ID
1706
+ account_id = 'account_id_example' # String | WhatsApp social account ID
1707
+
1708
+ begin
1709
+ # Get group info
1710
+ result = api_instance.get_whats_app_group_chat(group_id, account_id)
1711
+ p result
1712
+ rescue Late::ApiError => e
1713
+ puts "Error when calling WhatsAppApi->get_whats_app_group_chat: #{e}"
1714
+ end
1715
+ ```
1716
+
1717
+ #### Using the get_whats_app_group_chat_with_http_info variant
1718
+
1719
+ This returns an Array which contains the response data, status code and headers.
1720
+
1721
+ > <Array(<GetWhatsAppGroupChat200Response>, Integer, Hash)> get_whats_app_group_chat_with_http_info(group_id, account_id)
1722
+
1723
+ ```ruby
1724
+ begin
1725
+ # Get group info
1726
+ data, status_code, headers = api_instance.get_whats_app_group_chat_with_http_info(group_id, account_id)
1727
+ p status_code # => 2xx
1728
+ p headers # => { ... }
1729
+ p data # => <GetWhatsAppGroupChat200Response>
1730
+ rescue Late::ApiError => e
1731
+ puts "Error when calling WhatsAppApi->get_whats_app_group_chat_with_http_info: #{e}"
1732
+ end
1733
+ ```
1734
+
1735
+ ### Parameters
1736
+
1737
+ | Name | Type | Description | Notes |
1738
+ | ---- | ---- | ----------- | ----- |
1739
+ | **group_id** | **String** | Group ID | |
1740
+ | **account_id** | **String** | WhatsApp social account ID | |
1741
+
1742
+ ### Return type
1743
+
1744
+ [**GetWhatsAppGroupChat200Response**](GetWhatsAppGroupChat200Response.md)
1745
+
1746
+ ### Authorization
1747
+
1748
+ [bearerAuth](../README.md#bearerAuth)
1749
+
1750
+ ### HTTP request headers
1751
+
1752
+ - **Content-Type**: Not defined
1753
+ - **Accept**: application/json
1754
+
1755
+
1756
+ ## get_whats_app_groups
1757
+
1758
+ > <GetWhatsAppGroups200Response> get_whats_app_groups(account_id)
1759
+
1760
+ List contact groups
1761
+
1762
+ **Deprecated.** Use contact tags via `GET /v1/contacts` for grouping instead. WhatsApp groups have no cross-platform equivalent. List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
1763
+
1764
+ ### Examples
1765
+
1766
+ ```ruby
1767
+ require 'time'
1768
+ require 'late-sdk'
1769
+ # setup authorization
1770
+ Late.configure do |config|
1771
+ # Configure Bearer authorization (JWT): bearerAuth
1772
+ config.access_token = 'YOUR_BEARER_TOKEN'
1773
+ end
1774
+
1775
+ api_instance = Late::WhatsAppApi.new
1776
+ account_id = 'account_id_example' # String | WhatsApp social account ID
1777
+
1778
+ begin
1779
+ # List contact groups
1780
+ result = api_instance.get_whats_app_groups(account_id)
1781
+ p result
1782
+ rescue Late::ApiError => e
1783
+ puts "Error when calling WhatsAppApi->get_whats_app_groups: #{e}"
1784
+ end
1785
+ ```
1786
+
1787
+ #### Using the get_whats_app_groups_with_http_info variant
1788
+
1789
+ This returns an Array which contains the response data, status code and headers.
1790
+
1791
+ > <Array(<GetWhatsAppGroups200Response>, Integer, Hash)> get_whats_app_groups_with_http_info(account_id)
1792
+
1793
+ ```ruby
1794
+ begin
1795
+ # List contact groups
1796
+ data, status_code, headers = api_instance.get_whats_app_groups_with_http_info(account_id)
1797
+ p status_code # => 2xx
1798
+ p headers # => { ... }
1799
+ p data # => <GetWhatsAppGroups200Response>
1800
+ rescue Late::ApiError => e
1801
+ puts "Error when calling WhatsAppApi->get_whats_app_groups_with_http_info: #{e}"
1802
+ end
1803
+ ```
1804
+
1805
+ ### Parameters
1806
+
1807
+ | Name | Type | Description | Notes |
1808
+ | ---- | ---- | ----------- | ----- |
1809
+ | **account_id** | **String** | WhatsApp social account ID | |
1810
+
1811
+ ### Return type
1812
+
1813
+ [**GetWhatsAppGroups200Response**](GetWhatsAppGroups200Response.md)
1814
+
1815
+ ### Authorization
1816
+
1817
+ [bearerAuth](../README.md#bearerAuth)
1818
+
1819
+ ### HTTP request headers
1820
+
1821
+ - **Content-Type**: Not defined
1822
+ - **Accept**: application/json
1823
+
1824
+
1825
+ ## get_whats_app_template
1826
+
1827
+ > <GetWhatsAppTemplate200Response> get_whats_app_template(template_name, account_id)
1828
+
1829
+ Get template
1830
+
1831
+ Retrieve a single message template by name.
1832
+
1833
+ ### Examples
1834
+
1835
+ ```ruby
1836
+ require 'time'
1837
+ require 'late-sdk'
1838
+ # setup authorization
1839
+ Late.configure do |config|
1840
+ # Configure Bearer authorization (JWT): bearerAuth
1841
+ config.access_token = 'YOUR_BEARER_TOKEN'
1842
+ end
1843
+
1844
+ api_instance = Late::WhatsAppApi.new
1845
+ template_name = 'template_name_example' # String | Template name
1846
+ account_id = 'account_id_example' # String | WhatsApp social account ID
1847
+
1848
+ begin
1849
+ # Get template
1850
+ result = api_instance.get_whats_app_template(template_name, account_id)
1851
+ p result
1852
+ rescue Late::ApiError => e
1853
+ puts "Error when calling WhatsAppApi->get_whats_app_template: #{e}"
1854
+ end
1855
+ ```
1856
+
1857
+ #### Using the get_whats_app_template_with_http_info variant
1128
1858
 
1129
1859
  This returns an Array which contains the response data, status code and headers.
1130
1860
 
1131
- > <Array(<GetWhatsAppContact200Response>, Integer, Hash)> get_whats_app_contact_with_http_info(contact_id)
1861
+ > <Array(<GetWhatsAppTemplate200Response>, Integer, Hash)> get_whats_app_template_with_http_info(template_name, account_id)
1132
1862
 
1133
1863
  ```ruby
1134
1864
  begin
1135
- # Get contact
1136
- data, status_code, headers = api_instance.get_whats_app_contact_with_http_info(contact_id)
1865
+ # Get template
1866
+ data, status_code, headers = api_instance.get_whats_app_template_with_http_info(template_name, account_id)
1137
1867
  p status_code # => 2xx
1138
1868
  p headers # => { ... }
1139
- p data # => <GetWhatsAppContact200Response>
1869
+ p data # => <GetWhatsAppTemplate200Response>
1140
1870
  rescue Late::ApiError => e
1141
- puts "Error when calling WhatsAppApi->get_whats_app_contact_with_http_info: #{e}"
1871
+ puts "Error when calling WhatsAppApi->get_whats_app_template_with_http_info: #{e}"
1142
1872
  end
1143
1873
  ```
1144
1874
 
@@ -1146,11 +1876,12 @@ end
1146
1876
 
1147
1877
  | Name | Type | Description | Notes |
1148
1878
  | ---- | ---- | ----------- | ----- |
1149
- | **contact_id** | **String** | Contact ID | |
1879
+ | **template_name** | **String** | Template name | |
1880
+ | **account_id** | **String** | WhatsApp social account ID | |
1150
1881
 
1151
1882
  ### Return type
1152
1883
 
1153
- [**GetWhatsAppContact200Response**](GetWhatsAppContact200Response.md)
1884
+ [**GetWhatsAppTemplate200Response**](GetWhatsAppTemplate200Response.md)
1154
1885
 
1155
1886
  ### Authorization
1156
1887
 
@@ -1162,13 +1893,13 @@ end
1162
1893
  - **Accept**: application/json
1163
1894
 
1164
1895
 
1165
- ## get_whats_app_contacts
1896
+ ## get_whats_app_templates
1166
1897
 
1167
- > <GetWhatsAppContacts200Response> get_whats_app_contacts(account_id, opts)
1898
+ > <GetWhatsAppTemplates200Response> get_whats_app_templates(account_id)
1168
1899
 
1169
- List contacts
1900
+ List templates
1170
1901
 
1171
- **Deprecated.** Use `GET /v1/contacts?profileId={profileId}` instead. List WhatsApp contacts for an account. Supports filtering by tags, groups, opt-in status, and text search. Returns contacts sorted by name with available filter options.
1902
+ List all message templates for the WhatsApp Business Account (WABA) associated with the given account. Templates are fetched directly from the WhatsApp Cloud API.
1172
1903
 
1173
1904
  ### Examples
1174
1905
 
@@ -1183,39 +1914,31 @@ end
1183
1914
 
1184
1915
  api_instance = Late::WhatsAppApi.new
1185
1916
  account_id = 'account_id_example' # String | WhatsApp social account ID
1186
- opts = {
1187
- search: 'search_example', # String | Search contacts by name, phone, email, or company
1188
- tag: 'tag_example', # String | Filter by tag
1189
- group: 'group_example', # String | Filter by group
1190
- opted_in: 'true', # String | Filter by opt-in status
1191
- limit: 56, # Integer | Maximum results (default 50)
1192
- skip: 56 # Integer | Offset for pagination
1193
- }
1194
1917
 
1195
1918
  begin
1196
- # List contacts
1197
- result = api_instance.get_whats_app_contacts(account_id, opts)
1919
+ # List templates
1920
+ result = api_instance.get_whats_app_templates(account_id)
1198
1921
  p result
1199
1922
  rescue Late::ApiError => e
1200
- puts "Error when calling WhatsAppApi->get_whats_app_contacts: #{e}"
1923
+ puts "Error when calling WhatsAppApi->get_whats_app_templates: #{e}"
1201
1924
  end
1202
1925
  ```
1203
1926
 
1204
- #### Using the get_whats_app_contacts_with_http_info variant
1927
+ #### Using the get_whats_app_templates_with_http_info variant
1205
1928
 
1206
1929
  This returns an Array which contains the response data, status code and headers.
1207
1930
 
1208
- > <Array(<GetWhatsAppContacts200Response>, Integer, Hash)> get_whats_app_contacts_with_http_info(account_id, opts)
1931
+ > <Array(<GetWhatsAppTemplates200Response>, Integer, Hash)> get_whats_app_templates_with_http_info(account_id)
1209
1932
 
1210
1933
  ```ruby
1211
1934
  begin
1212
- # List contacts
1213
- data, status_code, headers = api_instance.get_whats_app_contacts_with_http_info(account_id, opts)
1935
+ # List templates
1936
+ data, status_code, headers = api_instance.get_whats_app_templates_with_http_info(account_id)
1214
1937
  p status_code # => 2xx
1215
1938
  p headers # => { ... }
1216
- p data # => <GetWhatsAppContacts200Response>
1939
+ p data # => <GetWhatsAppTemplates200Response>
1217
1940
  rescue Late::ApiError => e
1218
- puts "Error when calling WhatsAppApi->get_whats_app_contacts_with_http_info: #{e}"
1941
+ puts "Error when calling WhatsAppApi->get_whats_app_templates_with_http_info: #{e}"
1219
1942
  end
1220
1943
  ```
1221
1944
 
@@ -1224,16 +1947,10 @@ end
1224
1947
  | Name | Type | Description | Notes |
1225
1948
  | ---- | ---- | ----------- | ----- |
1226
1949
  | **account_id** | **String** | WhatsApp social account ID | |
1227
- | **search** | **String** | Search contacts by name, phone, email, or company | [optional] |
1228
- | **tag** | **String** | Filter by tag | [optional] |
1229
- | **group** | **String** | Filter by group | [optional] |
1230
- | **opted_in** | **String** | Filter by opt-in status | [optional] |
1231
- | **limit** | **Integer** | Maximum results (default 50) | [optional][default to 50] |
1232
- | **skip** | **Integer** | Offset for pagination | [optional][default to 0] |
1233
1950
 
1234
1951
  ### Return type
1235
1952
 
1236
- [**GetWhatsAppContacts200Response**](GetWhatsAppContacts200Response.md)
1953
+ [**GetWhatsAppTemplates200Response**](GetWhatsAppTemplates200Response.md)
1237
1954
 
1238
1955
  ### Authorization
1239
1956
 
@@ -1245,13 +1962,13 @@ end
1245
1962
  - **Accept**: application/json
1246
1963
 
1247
1964
 
1248
- ## get_whats_app_display_name
1965
+ ## import_whats_app_contacts
1249
1966
 
1250
- > <GetWhatsAppDisplayName200Response> get_whats_app_display_name(account_id)
1967
+ > <ImportWhatsAppContacts200Response> import_whats_app_contacts(import_whats_app_contacts_request)
1251
1968
 
1252
- Get display name and review status
1969
+ Bulk import contacts
1253
1970
 
1254
- Fetch the current display name and its Meta review status for a WhatsApp Business account. Display name changes require Meta approval and can take 1-3 business days.
1971
+ **Deprecated.** Use `POST /v1/contacts/bulk` instead. Import up to 1000 contacts at once. Each contact requires a phone number and name. Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
1255
1972
 
1256
1973
  ### Examples
1257
1974
 
@@ -1265,32 +1982,32 @@ Late.configure do |config|
1265
1982
  end
1266
1983
 
1267
1984
  api_instance = Late::WhatsAppApi.new
1268
- account_id = 'account_id_example' # String | WhatsApp social account ID
1985
+ import_whats_app_contacts_request = Late::ImportWhatsAppContactsRequest.new({account_id: 'account_id_example', contacts: [Late::ImportWhatsAppContactsRequestContactsInner.new({phone: 'phone_example', name: 'name_example'})]}) # ImportWhatsAppContactsRequest |
1269
1986
 
1270
1987
  begin
1271
- # Get display name and review status
1272
- result = api_instance.get_whats_app_display_name(account_id)
1988
+ # Bulk import contacts
1989
+ result = api_instance.import_whats_app_contacts(import_whats_app_contacts_request)
1273
1990
  p result
1274
1991
  rescue Late::ApiError => e
1275
- puts "Error when calling WhatsAppApi->get_whats_app_display_name: #{e}"
1992
+ puts "Error when calling WhatsAppApi->import_whats_app_contacts: #{e}"
1276
1993
  end
1277
1994
  ```
1278
1995
 
1279
- #### Using the get_whats_app_display_name_with_http_info variant
1996
+ #### Using the import_whats_app_contacts_with_http_info variant
1280
1997
 
1281
1998
  This returns an Array which contains the response data, status code and headers.
1282
1999
 
1283
- > <Array(<GetWhatsAppDisplayName200Response>, Integer, Hash)> get_whats_app_display_name_with_http_info(account_id)
2000
+ > <Array(<ImportWhatsAppContacts200Response>, Integer, Hash)> import_whats_app_contacts_with_http_info(import_whats_app_contacts_request)
1284
2001
 
1285
2002
  ```ruby
1286
2003
  begin
1287
- # Get display name and review status
1288
- data, status_code, headers = api_instance.get_whats_app_display_name_with_http_info(account_id)
2004
+ # Bulk import contacts
2005
+ data, status_code, headers = api_instance.import_whats_app_contacts_with_http_info(import_whats_app_contacts_request)
1289
2006
  p status_code # => 2xx
1290
2007
  p headers # => { ... }
1291
- p data # => <GetWhatsAppDisplayName200Response>
2008
+ p data # => <ImportWhatsAppContacts200Response>
1292
2009
  rescue Late::ApiError => e
1293
- puts "Error when calling WhatsAppApi->get_whats_app_display_name_with_http_info: #{e}"
2010
+ puts "Error when calling WhatsAppApi->import_whats_app_contacts_with_http_info: #{e}"
1294
2011
  end
1295
2012
  ```
1296
2013
 
@@ -1298,11 +2015,11 @@ end
1298
2015
 
1299
2016
  | Name | Type | Description | Notes |
1300
2017
  | ---- | ---- | ----------- | ----- |
1301
- | **account_id** | **String** | WhatsApp social account ID | |
2018
+ | **import_whats_app_contacts_request** | [**ImportWhatsAppContactsRequest**](ImportWhatsAppContactsRequest.md) | | |
1302
2019
 
1303
2020
  ### Return type
1304
2021
 
1305
- [**GetWhatsAppDisplayName200Response**](GetWhatsAppDisplayName200Response.md)
2022
+ [**ImportWhatsAppContacts200Response**](ImportWhatsAppContacts200Response.md)
1306
2023
 
1307
2024
  ### Authorization
1308
2025
 
@@ -1310,17 +2027,17 @@ end
1310
2027
 
1311
2028
  ### HTTP request headers
1312
2029
 
1313
- - **Content-Type**: Not defined
2030
+ - **Content-Type**: application/json
1314
2031
  - **Accept**: application/json
1315
2032
 
1316
2033
 
1317
- ## get_whats_app_groups
2034
+ ## list_whats_app_group_chats
1318
2035
 
1319
- > <GetWhatsAppGroups200Response> get_whats_app_groups(account_id)
2036
+ > <ListWhatsAppGroupChats200Response> list_whats_app_group_chats(account_id, opts)
1320
2037
 
1321
- List contact groups
2038
+ List active groups
1322
2039
 
1323
- **Deprecated.** Use contact tags via `GET /v1/contacts` for grouping instead. WhatsApp groups have no cross-platform equivalent. List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
2040
+ List active WhatsApp group chats for a business phone number. These are actual WhatsApp group conversations on the platform.
1324
2041
 
1325
2042
  ### Examples
1326
2043
 
@@ -1335,31 +2052,35 @@ end
1335
2052
 
1336
2053
  api_instance = Late::WhatsAppApi.new
1337
2054
  account_id = 'account_id_example' # String | WhatsApp social account ID
2055
+ opts = {
2056
+ limit: 56, # Integer | Max groups to return
2057
+ after: 'after_example' # String | Pagination cursor
2058
+ }
1338
2059
 
1339
2060
  begin
1340
- # List contact groups
1341
- result = api_instance.get_whats_app_groups(account_id)
2061
+ # List active groups
2062
+ result = api_instance.list_whats_app_group_chats(account_id, opts)
1342
2063
  p result
1343
2064
  rescue Late::ApiError => e
1344
- puts "Error when calling WhatsAppApi->get_whats_app_groups: #{e}"
2065
+ puts "Error when calling WhatsAppApi->list_whats_app_group_chats: #{e}"
1345
2066
  end
1346
2067
  ```
1347
2068
 
1348
- #### Using the get_whats_app_groups_with_http_info variant
2069
+ #### Using the list_whats_app_group_chats_with_http_info variant
1349
2070
 
1350
2071
  This returns an Array which contains the response data, status code and headers.
1351
2072
 
1352
- > <Array(<GetWhatsAppGroups200Response>, Integer, Hash)> get_whats_app_groups_with_http_info(account_id)
2073
+ > <Array(<ListWhatsAppGroupChats200Response>, Integer, Hash)> list_whats_app_group_chats_with_http_info(account_id, opts)
1353
2074
 
1354
2075
  ```ruby
1355
2076
  begin
1356
- # List contact groups
1357
- data, status_code, headers = api_instance.get_whats_app_groups_with_http_info(account_id)
2077
+ # List active groups
2078
+ data, status_code, headers = api_instance.list_whats_app_group_chats_with_http_info(account_id, opts)
1358
2079
  p status_code # => 2xx
1359
2080
  p headers # => { ... }
1360
- p data # => <GetWhatsAppGroups200Response>
2081
+ p data # => <ListWhatsAppGroupChats200Response>
1361
2082
  rescue Late::ApiError => e
1362
- puts "Error when calling WhatsAppApi->get_whats_app_groups_with_http_info: #{e}"
2083
+ puts "Error when calling WhatsAppApi->list_whats_app_group_chats_with_http_info: #{e}"
1363
2084
  end
1364
2085
  ```
1365
2086
 
@@ -1368,10 +2089,12 @@ end
1368
2089
  | Name | Type | Description | Notes |
1369
2090
  | ---- | ---- | ----------- | ----- |
1370
2091
  | **account_id** | **String** | WhatsApp social account ID | |
2092
+ | **limit** | **Integer** | Max groups to return | [optional][default to 25] |
2093
+ | **after** | **String** | Pagination cursor | [optional] |
1371
2094
 
1372
2095
  ### Return type
1373
2096
 
1374
- [**GetWhatsAppGroups200Response**](GetWhatsAppGroups200Response.md)
2097
+ [**ListWhatsAppGroupChats200Response**](ListWhatsAppGroupChats200Response.md)
1375
2098
 
1376
2099
  ### Authorization
1377
2100
 
@@ -1383,13 +2106,13 @@ end
1383
2106
  - **Accept**: application/json
1384
2107
 
1385
2108
 
1386
- ## get_whats_app_template
2109
+ ## list_whats_app_group_join_requests
1387
2110
 
1388
- > <GetWhatsAppTemplate200Response> get_whats_app_template(template_name, account_id)
2111
+ > <ListWhatsAppGroupJoinRequests200Response> list_whats_app_group_join_requests(group_id, account_id)
1389
2112
 
1390
- Get template
2113
+ List join requests
1391
2114
 
1392
- Retrieve a single message template by name.
2115
+ List pending join requests for a WhatsApp group (only for groups with approval_required mode).
1393
2116
 
1394
2117
  ### Examples
1395
2118
 
@@ -1403,33 +2126,33 @@ Late.configure do |config|
1403
2126
  end
1404
2127
 
1405
2128
  api_instance = Late::WhatsAppApi.new
1406
- template_name = 'template_name_example' # String | Template name
2129
+ group_id = 'group_id_example' # String | Group ID
1407
2130
  account_id = 'account_id_example' # String | WhatsApp social account ID
1408
2131
 
1409
2132
  begin
1410
- # Get template
1411
- result = api_instance.get_whats_app_template(template_name, account_id)
2133
+ # List join requests
2134
+ result = api_instance.list_whats_app_group_join_requests(group_id, account_id)
1412
2135
  p result
1413
2136
  rescue Late::ApiError => e
1414
- puts "Error when calling WhatsAppApi->get_whats_app_template: #{e}"
2137
+ puts "Error when calling WhatsAppApi->list_whats_app_group_join_requests: #{e}"
1415
2138
  end
1416
2139
  ```
1417
2140
 
1418
- #### Using the get_whats_app_template_with_http_info variant
2141
+ #### Using the list_whats_app_group_join_requests_with_http_info variant
1419
2142
 
1420
2143
  This returns an Array which contains the response data, status code and headers.
1421
2144
 
1422
- > <Array(<GetWhatsAppTemplate200Response>, Integer, Hash)> get_whats_app_template_with_http_info(template_name, account_id)
2145
+ > <Array(<ListWhatsAppGroupJoinRequests200Response>, Integer, Hash)> list_whats_app_group_join_requests_with_http_info(group_id, account_id)
1423
2146
 
1424
2147
  ```ruby
1425
2148
  begin
1426
- # Get template
1427
- data, status_code, headers = api_instance.get_whats_app_template_with_http_info(template_name, account_id)
2149
+ # List join requests
2150
+ data, status_code, headers = api_instance.list_whats_app_group_join_requests_with_http_info(group_id, account_id)
1428
2151
  p status_code # => 2xx
1429
2152
  p headers # => { ... }
1430
- p data # => <GetWhatsAppTemplate200Response>
2153
+ p data # => <ListWhatsAppGroupJoinRequests200Response>
1431
2154
  rescue Late::ApiError => e
1432
- puts "Error when calling WhatsAppApi->get_whats_app_template_with_http_info: #{e}"
2155
+ puts "Error when calling WhatsAppApi->list_whats_app_group_join_requests_with_http_info: #{e}"
1433
2156
  end
1434
2157
  ```
1435
2158
 
@@ -1437,12 +2160,12 @@ end
1437
2160
 
1438
2161
  | Name | Type | Description | Notes |
1439
2162
  | ---- | ---- | ----------- | ----- |
1440
- | **template_name** | **String** | Template name | |
2163
+ | **group_id** | **String** | Group ID | |
1441
2164
  | **account_id** | **String** | WhatsApp social account ID | |
1442
2165
 
1443
2166
  ### Return type
1444
2167
 
1445
- [**GetWhatsAppTemplate200Response**](GetWhatsAppTemplate200Response.md)
2168
+ [**ListWhatsAppGroupJoinRequests200Response**](ListWhatsAppGroupJoinRequests200Response.md)
1446
2169
 
1447
2170
  ### Authorization
1448
2171
 
@@ -1454,13 +2177,13 @@ end
1454
2177
  - **Accept**: application/json
1455
2178
 
1456
2179
 
1457
- ## get_whats_app_templates
2180
+ ## reject_whats_app_group_join_requests
1458
2181
 
1459
- > <GetWhatsAppTemplates200Response> get_whats_app_templates(account_id)
2182
+ > <UnpublishPost200Response> reject_whats_app_group_join_requests(group_id, account_id, reject_whats_app_group_join_requests_request)
1460
2183
 
1461
- List templates
2184
+ Reject join requests
1462
2185
 
1463
- List all message templates for the WhatsApp Business Account (WABA) associated with the given account. Templates are fetched directly from the WhatsApp Cloud API.
2186
+ Reject pending join requests for a WhatsApp group.
1464
2187
 
1465
2188
  ### Examples
1466
2189
 
@@ -1474,32 +2197,34 @@ Late.configure do |config|
1474
2197
  end
1475
2198
 
1476
2199
  api_instance = Late::WhatsAppApi.new
2200
+ group_id = 'group_id_example' # String | Group ID
1477
2201
  account_id = 'account_id_example' # String | WhatsApp social account ID
2202
+ reject_whats_app_group_join_requests_request = Late::RejectWhatsAppGroupJoinRequestsRequest.new({phone_numbers: ['phone_numbers_example']}) # RejectWhatsAppGroupJoinRequestsRequest |
1478
2203
 
1479
2204
  begin
1480
- # List templates
1481
- result = api_instance.get_whats_app_templates(account_id)
2205
+ # Reject join requests
2206
+ result = api_instance.reject_whats_app_group_join_requests(group_id, account_id, reject_whats_app_group_join_requests_request)
1482
2207
  p result
1483
2208
  rescue Late::ApiError => e
1484
- puts "Error when calling WhatsAppApi->get_whats_app_templates: #{e}"
2209
+ puts "Error when calling WhatsAppApi->reject_whats_app_group_join_requests: #{e}"
1485
2210
  end
1486
2211
  ```
1487
2212
 
1488
- #### Using the get_whats_app_templates_with_http_info variant
2213
+ #### Using the reject_whats_app_group_join_requests_with_http_info variant
1489
2214
 
1490
2215
  This returns an Array which contains the response data, status code and headers.
1491
2216
 
1492
- > <Array(<GetWhatsAppTemplates200Response>, Integer, Hash)> get_whats_app_templates_with_http_info(account_id)
2217
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> reject_whats_app_group_join_requests_with_http_info(group_id, account_id, reject_whats_app_group_join_requests_request)
1493
2218
 
1494
2219
  ```ruby
1495
2220
  begin
1496
- # List templates
1497
- data, status_code, headers = api_instance.get_whats_app_templates_with_http_info(account_id)
2221
+ # Reject join requests
2222
+ data, status_code, headers = api_instance.reject_whats_app_group_join_requests_with_http_info(group_id, account_id, reject_whats_app_group_join_requests_request)
1498
2223
  p status_code # => 2xx
1499
2224
  p headers # => { ... }
1500
- p data # => <GetWhatsAppTemplates200Response>
2225
+ p data # => <UnpublishPost200Response>
1501
2226
  rescue Late::ApiError => e
1502
- puts "Error when calling WhatsAppApi->get_whats_app_templates_with_http_info: #{e}"
2227
+ puts "Error when calling WhatsAppApi->reject_whats_app_group_join_requests_with_http_info: #{e}"
1503
2228
  end
1504
2229
  ```
1505
2230
 
@@ -1507,11 +2232,13 @@ end
1507
2232
 
1508
2233
  | Name | Type | Description | Notes |
1509
2234
  | ---- | ---- | ----------- | ----- |
2235
+ | **group_id** | **String** | Group ID | |
1510
2236
  | **account_id** | **String** | WhatsApp social account ID | |
2237
+ | **reject_whats_app_group_join_requests_request** | [**RejectWhatsAppGroupJoinRequestsRequest**](RejectWhatsAppGroupJoinRequestsRequest.md) | | |
1511
2238
 
1512
2239
  ### Return type
1513
2240
 
1514
- [**GetWhatsAppTemplates200Response**](GetWhatsAppTemplates200Response.md)
2241
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
1515
2242
 
1516
2243
  ### Authorization
1517
2244
 
@@ -1519,17 +2246,17 @@ end
1519
2246
 
1520
2247
  ### HTTP request headers
1521
2248
 
1522
- - **Content-Type**: Not defined
2249
+ - **Content-Type**: application/json
1523
2250
  - **Accept**: application/json
1524
2251
 
1525
2252
 
1526
- ## import_whats_app_contacts
2253
+ ## remove_whats_app_broadcast_recipients
1527
2254
 
1528
- > <ImportWhatsAppContacts200Response> import_whats_app_contacts(import_whats_app_contacts_request)
2255
+ > <RemoveWhatsAppBroadcastRecipients200Response> remove_whats_app_broadcast_recipients(broadcast_id, remove_whats_app_broadcast_recipients_request)
1529
2256
 
1530
- Bulk import contacts
2257
+ Remove recipients
1531
2258
 
1532
- **Deprecated.** Use `POST /v1/contacts/bulk` instead. Import up to 1000 contacts at once. Each contact requires a phone number and name. Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
2259
+ **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` with removal flag instead. Remove recipients from a draft broadcast by phone number.
1533
2260
 
1534
2261
  ### Examples
1535
2262
 
@@ -1543,32 +2270,33 @@ Late.configure do |config|
1543
2270
  end
1544
2271
 
1545
2272
  api_instance = Late::WhatsAppApi.new
1546
- import_whats_app_contacts_request = Late::ImportWhatsAppContactsRequest.new({account_id: 'account_id_example', contacts: [Late::ImportWhatsAppContactsRequestContactsInner.new({phone: 'phone_example', name: 'name_example'})]}) # ImportWhatsAppContactsRequest |
2273
+ broadcast_id = 'broadcast_id_example' # String | Broadcast ID
2274
+ remove_whats_app_broadcast_recipients_request = Late::RemoveWhatsAppBroadcastRecipientsRequest.new({phones: ['phones_example']}) # RemoveWhatsAppBroadcastRecipientsRequest |
1547
2275
 
1548
2276
  begin
1549
- # Bulk import contacts
1550
- result = api_instance.import_whats_app_contacts(import_whats_app_contacts_request)
2277
+ # Remove recipients
2278
+ result = api_instance.remove_whats_app_broadcast_recipients(broadcast_id, remove_whats_app_broadcast_recipients_request)
1551
2279
  p result
1552
2280
  rescue Late::ApiError => e
1553
- puts "Error when calling WhatsAppApi->import_whats_app_contacts: #{e}"
2281
+ puts "Error when calling WhatsAppApi->remove_whats_app_broadcast_recipients: #{e}"
1554
2282
  end
1555
2283
  ```
1556
2284
 
1557
- #### Using the import_whats_app_contacts_with_http_info variant
2285
+ #### Using the remove_whats_app_broadcast_recipients_with_http_info variant
1558
2286
 
1559
2287
  This returns an Array which contains the response data, status code and headers.
1560
2288
 
1561
- > <Array(<ImportWhatsAppContacts200Response>, Integer, Hash)> import_whats_app_contacts_with_http_info(import_whats_app_contacts_request)
2289
+ > <Array(<RemoveWhatsAppBroadcastRecipients200Response>, Integer, Hash)> remove_whats_app_broadcast_recipients_with_http_info(broadcast_id, remove_whats_app_broadcast_recipients_request)
1562
2290
 
1563
2291
  ```ruby
1564
2292
  begin
1565
- # Bulk import contacts
1566
- data, status_code, headers = api_instance.import_whats_app_contacts_with_http_info(import_whats_app_contacts_request)
2293
+ # Remove recipients
2294
+ data, status_code, headers = api_instance.remove_whats_app_broadcast_recipients_with_http_info(broadcast_id, remove_whats_app_broadcast_recipients_request)
1567
2295
  p status_code # => 2xx
1568
2296
  p headers # => { ... }
1569
- p data # => <ImportWhatsAppContacts200Response>
2297
+ p data # => <RemoveWhatsAppBroadcastRecipients200Response>
1570
2298
  rescue Late::ApiError => e
1571
- puts "Error when calling WhatsAppApi->import_whats_app_contacts_with_http_info: #{e}"
2299
+ puts "Error when calling WhatsAppApi->remove_whats_app_broadcast_recipients_with_http_info: #{e}"
1572
2300
  end
1573
2301
  ```
1574
2302
 
@@ -1576,11 +2304,12 @@ end
1576
2304
 
1577
2305
  | Name | Type | Description | Notes |
1578
2306
  | ---- | ---- | ----------- | ----- |
1579
- | **import_whats_app_contacts_request** | [**ImportWhatsAppContactsRequest**](ImportWhatsAppContactsRequest.md) | | |
2307
+ | **broadcast_id** | **String** | Broadcast ID | |
2308
+ | **remove_whats_app_broadcast_recipients_request** | [**RemoveWhatsAppBroadcastRecipientsRequest**](RemoveWhatsAppBroadcastRecipientsRequest.md) | | |
1580
2309
 
1581
2310
  ### Return type
1582
2311
 
1583
- [**ImportWhatsAppContacts200Response**](ImportWhatsAppContacts200Response.md)
2312
+ [**RemoveWhatsAppBroadcastRecipients200Response**](RemoveWhatsAppBroadcastRecipients200Response.md)
1584
2313
 
1585
2314
  ### Authorization
1586
2315
 
@@ -1592,13 +2321,13 @@ end
1592
2321
  - **Accept**: application/json
1593
2322
 
1594
2323
 
1595
- ## remove_whats_app_broadcast_recipients
2324
+ ## remove_whats_app_group_participants
1596
2325
 
1597
- > <RemoveWhatsAppBroadcastRecipients200Response> remove_whats_app_broadcast_recipients(broadcast_id, remove_whats_app_broadcast_recipients_request)
2326
+ > <UnpublishPost200Response> remove_whats_app_group_participants(group_id, account_id, remove_whats_app_group_participants_request)
1598
2327
 
1599
- Remove recipients
2328
+ Remove participants
1600
2329
 
1601
- **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` with removal flag instead. Remove recipients from a draft broadcast by phone number.
2330
+ Remove participants from a WhatsApp group.
1602
2331
 
1603
2332
  ### Examples
1604
2333
 
@@ -1612,33 +2341,34 @@ Late.configure do |config|
1612
2341
  end
1613
2342
 
1614
2343
  api_instance = Late::WhatsAppApi.new
1615
- broadcast_id = 'broadcast_id_example' # String | Broadcast ID
1616
- remove_whats_app_broadcast_recipients_request = Late::RemoveWhatsAppBroadcastRecipientsRequest.new({phones: ['phones_example']}) # RemoveWhatsAppBroadcastRecipientsRequest |
2344
+ group_id = 'group_id_example' # String | Group ID
2345
+ account_id = 'account_id_example' # String | WhatsApp social account ID
2346
+ remove_whats_app_group_participants_request = Late::RemoveWhatsAppGroupParticipantsRequest.new({phone_numbers: ['phone_numbers_example']}) # RemoveWhatsAppGroupParticipantsRequest |
1617
2347
 
1618
2348
  begin
1619
- # Remove recipients
1620
- result = api_instance.remove_whats_app_broadcast_recipients(broadcast_id, remove_whats_app_broadcast_recipients_request)
2349
+ # Remove participants
2350
+ result = api_instance.remove_whats_app_group_participants(group_id, account_id, remove_whats_app_group_participants_request)
1621
2351
  p result
1622
2352
  rescue Late::ApiError => e
1623
- puts "Error when calling WhatsAppApi->remove_whats_app_broadcast_recipients: #{e}"
2353
+ puts "Error when calling WhatsAppApi->remove_whats_app_group_participants: #{e}"
1624
2354
  end
1625
2355
  ```
1626
2356
 
1627
- #### Using the remove_whats_app_broadcast_recipients_with_http_info variant
2357
+ #### Using the remove_whats_app_group_participants_with_http_info variant
1628
2358
 
1629
2359
  This returns an Array which contains the response data, status code and headers.
1630
2360
 
1631
- > <Array(<RemoveWhatsAppBroadcastRecipients200Response>, Integer, Hash)> remove_whats_app_broadcast_recipients_with_http_info(broadcast_id, remove_whats_app_broadcast_recipients_request)
2361
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> remove_whats_app_group_participants_with_http_info(group_id, account_id, remove_whats_app_group_participants_request)
1632
2362
 
1633
2363
  ```ruby
1634
2364
  begin
1635
- # Remove recipients
1636
- data, status_code, headers = api_instance.remove_whats_app_broadcast_recipients_with_http_info(broadcast_id, remove_whats_app_broadcast_recipients_request)
2365
+ # Remove participants
2366
+ data, status_code, headers = api_instance.remove_whats_app_group_participants_with_http_info(group_id, account_id, remove_whats_app_group_participants_request)
1637
2367
  p status_code # => 2xx
1638
2368
  p headers # => { ... }
1639
- p data # => <RemoveWhatsAppBroadcastRecipients200Response>
2369
+ p data # => <UnpublishPost200Response>
1640
2370
  rescue Late::ApiError => e
1641
- puts "Error when calling WhatsAppApi->remove_whats_app_broadcast_recipients_with_http_info: #{e}"
2371
+ puts "Error when calling WhatsAppApi->remove_whats_app_group_participants_with_http_info: #{e}"
1642
2372
  end
1643
2373
  ```
1644
2374
 
@@ -1646,12 +2376,13 @@ end
1646
2376
 
1647
2377
  | Name | Type | Description | Notes |
1648
2378
  | ---- | ---- | ----------- | ----- |
1649
- | **broadcast_id** | **String** | Broadcast ID | |
1650
- | **remove_whats_app_broadcast_recipients_request** | [**RemoveWhatsAppBroadcastRecipientsRequest**](RemoveWhatsAppBroadcastRecipientsRequest.md) | | |
2379
+ | **group_id** | **String** | Group ID | |
2380
+ | **account_id** | **String** | WhatsApp social account ID | |
2381
+ | **remove_whats_app_group_participants_request** | [**RemoveWhatsAppGroupParticipantsRequest**](RemoveWhatsAppGroupParticipantsRequest.md) | | |
1651
2382
 
1652
2383
  ### Return type
1653
2384
 
1654
- [**RemoveWhatsAppBroadcastRecipients200Response**](RemoveWhatsAppBroadcastRecipients200Response.md)
2385
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
1655
2386
 
1656
2387
  ### Authorization
1657
2388
 
@@ -2150,6 +2881,79 @@ end
2150
2881
  - **Accept**: application/json
2151
2882
 
2152
2883
 
2884
+ ## update_whats_app_group_chat
2885
+
2886
+ > <UnpublishPost200Response> update_whats_app_group_chat(group_id, account_id, update_whats_app_group_chat_request)
2887
+
2888
+ Update group settings
2889
+
2890
+ Update the subject, description, or join approval mode of a WhatsApp group.
2891
+
2892
+ ### Examples
2893
+
2894
+ ```ruby
2895
+ require 'time'
2896
+ require 'late-sdk'
2897
+ # setup authorization
2898
+ Late.configure do |config|
2899
+ # Configure Bearer authorization (JWT): bearerAuth
2900
+ config.access_token = 'YOUR_BEARER_TOKEN'
2901
+ end
2902
+
2903
+ api_instance = Late::WhatsAppApi.new
2904
+ group_id = 'group_id_example' # String | Group ID
2905
+ account_id = 'account_id_example' # String | WhatsApp social account ID
2906
+ update_whats_app_group_chat_request = Late::UpdateWhatsAppGroupChatRequest.new # UpdateWhatsAppGroupChatRequest |
2907
+
2908
+ begin
2909
+ # Update group settings
2910
+ result = api_instance.update_whats_app_group_chat(group_id, account_id, update_whats_app_group_chat_request)
2911
+ p result
2912
+ rescue Late::ApiError => e
2913
+ puts "Error when calling WhatsAppApi->update_whats_app_group_chat: #{e}"
2914
+ end
2915
+ ```
2916
+
2917
+ #### Using the update_whats_app_group_chat_with_http_info variant
2918
+
2919
+ This returns an Array which contains the response data, status code and headers.
2920
+
2921
+ > <Array(<UnpublishPost200Response>, Integer, Hash)> update_whats_app_group_chat_with_http_info(group_id, account_id, update_whats_app_group_chat_request)
2922
+
2923
+ ```ruby
2924
+ begin
2925
+ # Update group settings
2926
+ data, status_code, headers = api_instance.update_whats_app_group_chat_with_http_info(group_id, account_id, update_whats_app_group_chat_request)
2927
+ p status_code # => 2xx
2928
+ p headers # => { ... }
2929
+ p data # => <UnpublishPost200Response>
2930
+ rescue Late::ApiError => e
2931
+ puts "Error when calling WhatsAppApi->update_whats_app_group_chat_with_http_info: #{e}"
2932
+ end
2933
+ ```
2934
+
2935
+ ### Parameters
2936
+
2937
+ | Name | Type | Description | Notes |
2938
+ | ---- | ---- | ----------- | ----- |
2939
+ | **group_id** | **String** | Group ID | |
2940
+ | **account_id** | **String** | WhatsApp social account ID | |
2941
+ | **update_whats_app_group_chat_request** | [**UpdateWhatsAppGroupChatRequest**](UpdateWhatsAppGroupChatRequest.md) | | |
2942
+
2943
+ ### Return type
2944
+
2945
+ [**UnpublishPost200Response**](UnpublishPost200Response.md)
2946
+
2947
+ ### Authorization
2948
+
2949
+ [bearerAuth](../README.md#bearerAuth)
2950
+
2951
+ ### HTTP request headers
2952
+
2953
+ - **Content-Type**: application/json
2954
+ - **Accept**: application/json
2955
+
2956
+
2153
2957
  ## update_whats_app_template
2154
2958
 
2155
2959
  > <UpdateWhatsAppTemplate200Response> update_whats_app_template(template_name, update_whats_app_template_request)