late-sdk 0.0.50 → 0.0.52
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.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/docs/AccountWithFollowerStats.md +3 -1
- data/docs/AccountWithFollowerStatsAllOfAccountStats.md +38 -0
- data/docs/GetWhatsAppDisplayName200Response.md +20 -0
- data/docs/GetWhatsAppDisplayName200ResponseDisplayName.md +22 -0
- data/docs/UpdateWhatsAppDisplayName200Response.md +22 -0
- data/docs/UpdateWhatsAppDisplayName200ResponseDisplayName.md +20 -0
- data/docs/UpdateWhatsAppDisplayNameRequest.md +20 -0
- data/docs/UsageStats.md +2 -0
- data/docs/WhatsAppApi.md +212 -0
- data/lib/late-sdk/api/whats_app_api.rb +208 -0
- data/lib/late-sdk/models/account_with_follower_stats.rb +13 -4
- data/lib/late-sdk/models/account_with_follower_stats_all_of_account_stats.rb +249 -0
- data/lib/late-sdk/models/get_whats_app_display_name200_response.rb +156 -0
- data/lib/late-sdk/models/get_whats_app_display_name200_response_display_name.rb +202 -0
- data/lib/late-sdk/models/update_whats_app_display_name200_response.rb +165 -0
- data/lib/late-sdk/models/update_whats_app_display_name200_response_display_name.rb +190 -0
- data/lib/late-sdk/models/update_whats_app_display_name_request.rb +210 -0
- data/lib/late-sdk/models/usage_stats.rb +11 -1
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +6 -0
- data/openapi.yaml +144 -0
- data/spec/api/whats_app_api_spec.rb +37 -0
- data/spec/models/account_with_follower_stats_all_of_account_stats_spec.rb +96 -0
- data/spec/models/account_with_follower_stats_spec.rb +6 -0
- data/spec/models/get_whats_app_display_name200_response_display_name_spec.rb +52 -0
- data/spec/models/get_whats_app_display_name200_response_spec.rb +42 -0
- data/spec/models/update_whats_app_display_name200_response_display_name_spec.rb +46 -0
- data/spec/models/update_whats_app_display_name200_response_spec.rb +48 -0
- data/spec/models/update_whats_app_display_name_request_spec.rb +42 -0
- data/spec/models/usage_stats_spec.rb +6 -0
- metadata +25 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75bfdcd6365ccd7394759d398ceb76e3178a4cbe298b44a69b779371e27974a2
|
|
4
|
+
data.tar.gz: c4dab49c113c28124e4482b3583efd92a74b5ba64c67f75cd804321649556e1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7123828bbd12c79c764244401e3be27b1adf84204854dc96567793dd36a9e05f4335bab6e3d3dc501001f1f7af5feb292fca94c8773758962b6b5141d87e5c70
|
|
7
|
+
data.tar.gz: 2f174ca67e3017d2dab5ddd57f45ef91f7965443059ac64088a6dcb8fbe687a56ded24c0998283cb88e1814453d5d108a46d7c3fbb1c57820bdd298b91405ba9
|
data/README.md
CHANGED
|
@@ -223,6 +223,7 @@ Class | Method | HTTP request | Description
|
|
|
223
223
|
*Late::WhatsAppApi* | [**get_whats_app_business_profile**](docs/WhatsAppApi.md#get_whats_app_business_profile) | **GET** /v1/whatsapp/business-profile | Get business profile
|
|
224
224
|
*Late::WhatsAppApi* | [**get_whats_app_contact**](docs/WhatsAppApi.md#get_whats_app_contact) | **GET** /v1/whatsapp/contacts/{contactId} | Get contact
|
|
225
225
|
*Late::WhatsAppApi* | [**get_whats_app_contacts**](docs/WhatsAppApi.md#get_whats_app_contacts) | **GET** /v1/whatsapp/contacts | List contacts
|
|
226
|
+
*Late::WhatsAppApi* | [**get_whats_app_display_name**](docs/WhatsAppApi.md#get_whats_app_display_name) | **GET** /v1/whatsapp/business-profile/display-name | Get display name and review status
|
|
226
227
|
*Late::WhatsAppApi* | [**get_whats_app_groups**](docs/WhatsAppApi.md#get_whats_app_groups) | **GET** /v1/whatsapp/groups | List contact groups
|
|
227
228
|
*Late::WhatsAppApi* | [**get_whats_app_template**](docs/WhatsAppApi.md#get_whats_app_template) | **GET** /v1/whatsapp/templates/{templateName} | Get template
|
|
228
229
|
*Late::WhatsAppApi* | [**get_whats_app_templates**](docs/WhatsAppApi.md#get_whats_app_templates) | **GET** /v1/whatsapp/templates | List templates
|
|
@@ -234,7 +235,9 @@ Class | Method | HTTP request | Description
|
|
|
234
235
|
*Late::WhatsAppApi* | [**send_whats_app_bulk**](docs/WhatsAppApi.md#send_whats_app_bulk) | **POST** /v1/whatsapp/bulk | Bulk send template messages
|
|
235
236
|
*Late::WhatsAppApi* | [**update_whats_app_business_profile**](docs/WhatsAppApi.md#update_whats_app_business_profile) | **POST** /v1/whatsapp/business-profile | Update business profile
|
|
236
237
|
*Late::WhatsAppApi* | [**update_whats_app_contact**](docs/WhatsAppApi.md#update_whats_app_contact) | **PUT** /v1/whatsapp/contacts/{contactId} | Update contact
|
|
238
|
+
*Late::WhatsAppApi* | [**update_whats_app_display_name**](docs/WhatsAppApi.md#update_whats_app_display_name) | **POST** /v1/whatsapp/business-profile/display-name | Request display name change
|
|
237
239
|
*Late::WhatsAppApi* | [**update_whats_app_template**](docs/WhatsAppApi.md#update_whats_app_template) | **PATCH** /v1/whatsapp/templates/{templateName} | Update template
|
|
240
|
+
*Late::WhatsAppApi* | [**upload_whats_app_profile_photo**](docs/WhatsAppApi.md#upload_whats_app_profile_photo) | **POST** /v1/whatsapp/business-profile/photo | Upload profile picture
|
|
238
241
|
*Late::WhatsAppPhoneNumbersApi* | [**get_whats_app_phone_number**](docs/WhatsAppPhoneNumbersApi.md#get_whats_app_phone_number) | **GET** /v1/whatsapp/phone-numbers/{phoneNumberId} | Get phone number
|
|
239
242
|
*Late::WhatsAppPhoneNumbersApi* | [**get_whats_app_phone_numbers**](docs/WhatsAppPhoneNumbersApi.md#get_whats_app_phone_numbers) | **GET** /v1/whatsapp/phone-numbers | List phone numbers
|
|
240
243
|
*Late::WhatsAppPhoneNumbersApi* | [**purchase_whats_app_phone_number**](docs/WhatsAppPhoneNumbersApi.md#purchase_whats_app_phone_number) | **POST** /v1/whatsapp/phone-numbers/purchase | Purchase phone number
|
|
@@ -245,6 +248,7 @@ Class | Method | HTTP request | Description
|
|
|
245
248
|
|
|
246
249
|
- [Late::AccountGetResponse](docs/AccountGetResponse.md)
|
|
247
250
|
- [Late::AccountWithFollowerStats](docs/AccountWithFollowerStats.md)
|
|
251
|
+
- [Late::AccountWithFollowerStatsAllOfAccountStats](docs/AccountWithFollowerStatsAllOfAccountStats.md)
|
|
248
252
|
- [Late::AccountsListResponse](docs/AccountsListResponse.md)
|
|
249
253
|
- [Late::AddWhatsAppBroadcastRecipients200Response](docs/AddWhatsAppBroadcastRecipients200Response.md)
|
|
250
254
|
- [Late::AddWhatsAppBroadcastRecipientsRequest](docs/AddWhatsAppBroadcastRecipientsRequest.md)
|
|
@@ -461,6 +465,8 @@ Class | Method | HTTP request | Description
|
|
|
461
465
|
- [Late::GetWhatsAppContacts200ResponseContactsInner](docs/GetWhatsAppContacts200ResponseContactsInner.md)
|
|
462
466
|
- [Late::GetWhatsAppContacts200ResponseFilters](docs/GetWhatsAppContacts200ResponseFilters.md)
|
|
463
467
|
- [Late::GetWhatsAppContacts200ResponsePagination](docs/GetWhatsAppContacts200ResponsePagination.md)
|
|
468
|
+
- [Late::GetWhatsAppDisplayName200Response](docs/GetWhatsAppDisplayName200Response.md)
|
|
469
|
+
- [Late::GetWhatsAppDisplayName200ResponseDisplayName](docs/GetWhatsAppDisplayName200ResponseDisplayName.md)
|
|
464
470
|
- [Late::GetWhatsAppGroups200Response](docs/GetWhatsAppGroups200Response.md)
|
|
465
471
|
- [Late::GetWhatsAppGroups200ResponseGroupsInner](docs/GetWhatsAppGroups200ResponseGroupsInner.md)
|
|
466
472
|
- [Late::GetWhatsAppGroups200ResponseSummary](docs/GetWhatsAppGroups200ResponseSummary.md)
|
|
@@ -705,6 +711,9 @@ Class | Method | HTTP request | Description
|
|
|
705
711
|
- [Late::UpdateWhatsAppContact200Response](docs/UpdateWhatsAppContact200Response.md)
|
|
706
712
|
- [Late::UpdateWhatsAppContact200ResponseContact](docs/UpdateWhatsAppContact200ResponseContact.md)
|
|
707
713
|
- [Late::UpdateWhatsAppContactRequest](docs/UpdateWhatsAppContactRequest.md)
|
|
714
|
+
- [Late::UpdateWhatsAppDisplayName200Response](docs/UpdateWhatsAppDisplayName200Response.md)
|
|
715
|
+
- [Late::UpdateWhatsAppDisplayName200ResponseDisplayName](docs/UpdateWhatsAppDisplayName200ResponseDisplayName.md)
|
|
716
|
+
- [Late::UpdateWhatsAppDisplayNameRequest](docs/UpdateWhatsAppDisplayNameRequest.md)
|
|
708
717
|
- [Late::UpdateWhatsAppTemplate200Response](docs/UpdateWhatsAppTemplate200Response.md)
|
|
709
718
|
- [Late::UpdateWhatsAppTemplate200ResponseTemplate](docs/UpdateWhatsAppTemplate200ResponseTemplate.md)
|
|
710
719
|
- [Late::UpdateWhatsAppTemplateRequest](docs/UpdateWhatsAppTemplateRequest.md)
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
| **growth** | **Float** | Follower change over period | [optional] |
|
|
20
20
|
| **growth_percentage** | **Float** | Percentage growth | [optional] |
|
|
21
21
|
| **data_points** | **Float** | Number of historical snapshots | [optional] |
|
|
22
|
+
| **account_stats** | [**AccountWithFollowerStatsAllOfAccountStats**](AccountWithFollowerStatsAllOfAccountStats.md) | | [optional] |
|
|
22
23
|
|
|
23
24
|
## Example
|
|
24
25
|
|
|
@@ -40,7 +41,8 @@ instance = Late::AccountWithFollowerStats.new(
|
|
|
40
41
|
last_updated: null,
|
|
41
42
|
growth: null,
|
|
42
43
|
growth_percentage: null,
|
|
43
|
-
data_points: null
|
|
44
|
+
data_points: null,
|
|
45
|
+
account_stats: null
|
|
44
46
|
)
|
|
45
47
|
```
|
|
46
48
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Late::AccountWithFollowerStatsAllOfAccountStats
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **following_count** | **Float** | Number of accounts being followed | [optional] |
|
|
8
|
+
| **media_count** | **Float** | Total media posts (Instagram) | [optional] |
|
|
9
|
+
| **video_count** | **Float** | Total videos (YouTube | [optional] |
|
|
10
|
+
| **tweet_count** | **Float** | Total tweets (X/Twitter) | [optional] |
|
|
11
|
+
| **posts_count** | **Float** | Total posts (Bluesky) | [optional] |
|
|
12
|
+
| **pin_count** | **Float** | Total pins (Pinterest) | [optional] |
|
|
13
|
+
| **total_views** | **Float** | Total channel views (YouTube) | [optional] |
|
|
14
|
+
| **likes_count** | **Float** | Total likes received (TikTok) | [optional] |
|
|
15
|
+
| **monthly_views** | **Float** | Monthly profile views (Pinterest) | [optional] |
|
|
16
|
+
| **listed_count** | **Float** | Lists the user appears on (X/Twitter) | [optional] |
|
|
17
|
+
| **board_count** | **Float** | Total boards (Pinterest) | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'late-sdk'
|
|
23
|
+
|
|
24
|
+
instance = Late::AccountWithFollowerStatsAllOfAccountStats.new(
|
|
25
|
+
following_count: null,
|
|
26
|
+
media_count: null,
|
|
27
|
+
video_count: null,
|
|
28
|
+
tweet_count: null,
|
|
29
|
+
posts_count: null,
|
|
30
|
+
pin_count: null,
|
|
31
|
+
total_views: null,
|
|
32
|
+
likes_count: null,
|
|
33
|
+
monthly_views: null,
|
|
34
|
+
listed_count: null,
|
|
35
|
+
board_count: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::GetWhatsAppDisplayName200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **display_name** | [**GetWhatsAppDisplayName200ResponseDisplayName**](GetWhatsAppDisplayName200ResponseDisplayName.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::GetWhatsAppDisplayName200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
display_name: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Late::GetWhatsAppDisplayName200ResponseDisplayName
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Current verified display name | [optional] |
|
|
8
|
+
| **status** | **String** | Meta review status for the display name | [optional] |
|
|
9
|
+
| **phone_number** | **String** | Display phone number | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'late-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Late::GetWhatsAppDisplayName200ResponseDisplayName.new(
|
|
17
|
+
name: null,
|
|
18
|
+
status: null,
|
|
19
|
+
phone_number: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Late::UpdateWhatsAppDisplayName200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **message** | **String** | | [optional] |
|
|
9
|
+
| **display_name** | [**UpdateWhatsAppDisplayName200ResponseDisplayName**](UpdateWhatsAppDisplayName200ResponseDisplayName.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'late-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Late::UpdateWhatsAppDisplayName200Response.new(
|
|
17
|
+
success: null,
|
|
18
|
+
message: null,
|
|
19
|
+
display_name: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::UpdateWhatsAppDisplayName200ResponseDisplayName
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **status** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::UpdateWhatsAppDisplayName200ResponseDisplayName.new(
|
|
16
|
+
name: null,
|
|
17
|
+
status: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::UpdateWhatsAppDisplayNameRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_id** | **String** | WhatsApp social account ID | |
|
|
8
|
+
| **display_name** | **String** | New display name (must follow WhatsApp naming guidelines) | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::UpdateWhatsAppDisplayNameRequest.new(
|
|
16
|
+
account_id: null,
|
|
17
|
+
display_name: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/UsageStats.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **plan_name** | **String** | | [optional] |
|
|
8
8
|
| **billing_period** | **String** | | [optional] |
|
|
9
9
|
| **signup_date** | **Time** | | [optional] |
|
|
10
|
+
| **billing_anchor_day** | **Integer** | Day of month (1-31) when the billing cycle resets | [optional] |
|
|
10
11
|
| **limits** | [**UsageStatsLimits**](UsageStatsLimits.md) | | [optional] |
|
|
11
12
|
| **usage** | [**UsageStatsUsage**](UsageStatsUsage.md) | | [optional] |
|
|
12
13
|
|
|
@@ -19,6 +20,7 @@ instance = Late::UsageStats.new(
|
|
|
19
20
|
plan_name: null,
|
|
20
21
|
billing_period: null,
|
|
21
22
|
signup_date: null,
|
|
23
|
+
billing_anchor_day: null,
|
|
22
24
|
limits: null,
|
|
23
25
|
usage: null
|
|
24
26
|
)
|
data/docs/WhatsAppApi.md
CHANGED
|
@@ -21,6 +21,7 @@ All URIs are relative to *https://getlate.dev/api*
|
|
|
21
21
|
| [**get_whats_app_business_profile**](WhatsAppApi.md#get_whats_app_business_profile) | **GET** /v1/whatsapp/business-profile | Get business profile |
|
|
22
22
|
| [**get_whats_app_contact**](WhatsAppApi.md#get_whats_app_contact) | **GET** /v1/whatsapp/contacts/{contactId} | Get contact |
|
|
23
23
|
| [**get_whats_app_contacts**](WhatsAppApi.md#get_whats_app_contacts) | **GET** /v1/whatsapp/contacts | List contacts |
|
|
24
|
+
| [**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 |
|
|
24
25
|
| [**get_whats_app_groups**](WhatsAppApi.md#get_whats_app_groups) | **GET** /v1/whatsapp/groups | List contact groups |
|
|
25
26
|
| [**get_whats_app_template**](WhatsAppApi.md#get_whats_app_template) | **GET** /v1/whatsapp/templates/{templateName} | Get template |
|
|
26
27
|
| [**get_whats_app_templates**](WhatsAppApi.md#get_whats_app_templates) | **GET** /v1/whatsapp/templates | List templates |
|
|
@@ -32,7 +33,9 @@ All URIs are relative to *https://getlate.dev/api*
|
|
|
32
33
|
| [**send_whats_app_bulk**](WhatsAppApi.md#send_whats_app_bulk) | **POST** /v1/whatsapp/bulk | Bulk send template messages |
|
|
33
34
|
| [**update_whats_app_business_profile**](WhatsAppApi.md#update_whats_app_business_profile) | **POST** /v1/whatsapp/business-profile | Update business profile |
|
|
34
35
|
| [**update_whats_app_contact**](WhatsAppApi.md#update_whats_app_contact) | **PUT** /v1/whatsapp/contacts/{contactId} | Update contact |
|
|
36
|
+
| [**update_whats_app_display_name**](WhatsAppApi.md#update_whats_app_display_name) | **POST** /v1/whatsapp/business-profile/display-name | Request display name change |
|
|
35
37
|
| [**update_whats_app_template**](WhatsAppApi.md#update_whats_app_template) | **PATCH** /v1/whatsapp/templates/{templateName} | Update template |
|
|
38
|
+
| [**upload_whats_app_profile_photo**](WhatsAppApi.md#upload_whats_app_profile_photo) | **POST** /v1/whatsapp/business-profile/photo | Upload profile picture |
|
|
36
39
|
|
|
37
40
|
|
|
38
41
|
## add_whats_app_broadcast_recipients
|
|
@@ -1242,6 +1245,75 @@ end
|
|
|
1242
1245
|
- **Accept**: application/json
|
|
1243
1246
|
|
|
1244
1247
|
|
|
1248
|
+
## get_whats_app_display_name
|
|
1249
|
+
|
|
1250
|
+
> <GetWhatsAppDisplayName200Response> get_whats_app_display_name(account_id)
|
|
1251
|
+
|
|
1252
|
+
Get display name and review status
|
|
1253
|
+
|
|
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.
|
|
1255
|
+
|
|
1256
|
+
### Examples
|
|
1257
|
+
|
|
1258
|
+
```ruby
|
|
1259
|
+
require 'time'
|
|
1260
|
+
require 'late-sdk'
|
|
1261
|
+
# setup authorization
|
|
1262
|
+
Late.configure do |config|
|
|
1263
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
1264
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
api_instance = Late::WhatsAppApi.new
|
|
1268
|
+
account_id = 'account_id_example' # String | WhatsApp social account ID
|
|
1269
|
+
|
|
1270
|
+
begin
|
|
1271
|
+
# Get display name and review status
|
|
1272
|
+
result = api_instance.get_whats_app_display_name(account_id)
|
|
1273
|
+
p result
|
|
1274
|
+
rescue Late::ApiError => e
|
|
1275
|
+
puts "Error when calling WhatsAppApi->get_whats_app_display_name: #{e}"
|
|
1276
|
+
end
|
|
1277
|
+
```
|
|
1278
|
+
|
|
1279
|
+
#### Using the get_whats_app_display_name_with_http_info variant
|
|
1280
|
+
|
|
1281
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1282
|
+
|
|
1283
|
+
> <Array(<GetWhatsAppDisplayName200Response>, Integer, Hash)> get_whats_app_display_name_with_http_info(account_id)
|
|
1284
|
+
|
|
1285
|
+
```ruby
|
|
1286
|
+
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)
|
|
1289
|
+
p status_code # => 2xx
|
|
1290
|
+
p headers # => { ... }
|
|
1291
|
+
p data # => <GetWhatsAppDisplayName200Response>
|
|
1292
|
+
rescue Late::ApiError => e
|
|
1293
|
+
puts "Error when calling WhatsAppApi->get_whats_app_display_name_with_http_info: #{e}"
|
|
1294
|
+
end
|
|
1295
|
+
```
|
|
1296
|
+
|
|
1297
|
+
### Parameters
|
|
1298
|
+
|
|
1299
|
+
| Name | Type | Description | Notes |
|
|
1300
|
+
| ---- | ---- | ----------- | ----- |
|
|
1301
|
+
| **account_id** | **String** | WhatsApp social account ID | |
|
|
1302
|
+
|
|
1303
|
+
### Return type
|
|
1304
|
+
|
|
1305
|
+
[**GetWhatsAppDisplayName200Response**](GetWhatsAppDisplayName200Response.md)
|
|
1306
|
+
|
|
1307
|
+
### Authorization
|
|
1308
|
+
|
|
1309
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1310
|
+
|
|
1311
|
+
### HTTP request headers
|
|
1312
|
+
|
|
1313
|
+
- **Content-Type**: Not defined
|
|
1314
|
+
- **Accept**: application/json
|
|
1315
|
+
|
|
1316
|
+
|
|
1245
1317
|
## get_whats_app_groups
|
|
1246
1318
|
|
|
1247
1319
|
> <GetWhatsAppGroups200Response> get_whats_app_groups(account_id)
|
|
@@ -2009,6 +2081,75 @@ end
|
|
|
2009
2081
|
- **Accept**: application/json
|
|
2010
2082
|
|
|
2011
2083
|
|
|
2084
|
+
## update_whats_app_display_name
|
|
2085
|
+
|
|
2086
|
+
> <UpdateWhatsAppDisplayName200Response> update_whats_app_display_name(update_whats_app_display_name_request)
|
|
2087
|
+
|
|
2088
|
+
Request display name change
|
|
2089
|
+
|
|
2090
|
+
Submit a display name change request for the WhatsApp Business account. The new name must follow WhatsApp naming guidelines (3-512 characters, must represent your business). Changes require Meta review and approval, which typically takes 1-3 business days.
|
|
2091
|
+
|
|
2092
|
+
### Examples
|
|
2093
|
+
|
|
2094
|
+
```ruby
|
|
2095
|
+
require 'time'
|
|
2096
|
+
require 'late-sdk'
|
|
2097
|
+
# setup authorization
|
|
2098
|
+
Late.configure do |config|
|
|
2099
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
2100
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
2101
|
+
end
|
|
2102
|
+
|
|
2103
|
+
api_instance = Late::WhatsAppApi.new
|
|
2104
|
+
update_whats_app_display_name_request = Late::UpdateWhatsAppDisplayNameRequest.new({account_id: 'account_id_example', display_name: 'display_name_example'}) # UpdateWhatsAppDisplayNameRequest |
|
|
2105
|
+
|
|
2106
|
+
begin
|
|
2107
|
+
# Request display name change
|
|
2108
|
+
result = api_instance.update_whats_app_display_name(update_whats_app_display_name_request)
|
|
2109
|
+
p result
|
|
2110
|
+
rescue Late::ApiError => e
|
|
2111
|
+
puts "Error when calling WhatsAppApi->update_whats_app_display_name: #{e}"
|
|
2112
|
+
end
|
|
2113
|
+
```
|
|
2114
|
+
|
|
2115
|
+
#### Using the update_whats_app_display_name_with_http_info variant
|
|
2116
|
+
|
|
2117
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2118
|
+
|
|
2119
|
+
> <Array(<UpdateWhatsAppDisplayName200Response>, Integer, Hash)> update_whats_app_display_name_with_http_info(update_whats_app_display_name_request)
|
|
2120
|
+
|
|
2121
|
+
```ruby
|
|
2122
|
+
begin
|
|
2123
|
+
# Request display name change
|
|
2124
|
+
data, status_code, headers = api_instance.update_whats_app_display_name_with_http_info(update_whats_app_display_name_request)
|
|
2125
|
+
p status_code # => 2xx
|
|
2126
|
+
p headers # => { ... }
|
|
2127
|
+
p data # => <UpdateWhatsAppDisplayName200Response>
|
|
2128
|
+
rescue Late::ApiError => e
|
|
2129
|
+
puts "Error when calling WhatsAppApi->update_whats_app_display_name_with_http_info: #{e}"
|
|
2130
|
+
end
|
|
2131
|
+
```
|
|
2132
|
+
|
|
2133
|
+
### Parameters
|
|
2134
|
+
|
|
2135
|
+
| Name | Type | Description | Notes |
|
|
2136
|
+
| ---- | ---- | ----------- | ----- |
|
|
2137
|
+
| **update_whats_app_display_name_request** | [**UpdateWhatsAppDisplayNameRequest**](UpdateWhatsAppDisplayNameRequest.md) | | |
|
|
2138
|
+
|
|
2139
|
+
### Return type
|
|
2140
|
+
|
|
2141
|
+
[**UpdateWhatsAppDisplayName200Response**](UpdateWhatsAppDisplayName200Response.md)
|
|
2142
|
+
|
|
2143
|
+
### Authorization
|
|
2144
|
+
|
|
2145
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
2146
|
+
|
|
2147
|
+
### HTTP request headers
|
|
2148
|
+
|
|
2149
|
+
- **Content-Type**: application/json
|
|
2150
|
+
- **Accept**: application/json
|
|
2151
|
+
|
|
2152
|
+
|
|
2012
2153
|
## update_whats_app_template
|
|
2013
2154
|
|
|
2014
2155
|
> <UpdateWhatsAppTemplate200Response> update_whats_app_template(template_name, update_whats_app_template_request)
|
|
@@ -2079,3 +2220,74 @@ end
|
|
|
2079
2220
|
- **Content-Type**: application/json
|
|
2080
2221
|
- **Accept**: application/json
|
|
2081
2222
|
|
|
2223
|
+
|
|
2224
|
+
## upload_whats_app_profile_photo
|
|
2225
|
+
|
|
2226
|
+
> <UnpublishPost200Response> upload_whats_app_profile_photo(account_id, file)
|
|
2227
|
+
|
|
2228
|
+
Upload profile picture
|
|
2229
|
+
|
|
2230
|
+
Upload a new profile picture for the WhatsApp Business Profile. Uses Meta's resumable upload API under the hood: creates an upload session, uploads the image bytes, then updates the business profile with the resulting handle.
|
|
2231
|
+
|
|
2232
|
+
### Examples
|
|
2233
|
+
|
|
2234
|
+
```ruby
|
|
2235
|
+
require 'time'
|
|
2236
|
+
require 'late-sdk'
|
|
2237
|
+
# setup authorization
|
|
2238
|
+
Late.configure do |config|
|
|
2239
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
2240
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
2241
|
+
end
|
|
2242
|
+
|
|
2243
|
+
api_instance = Late::WhatsAppApi.new
|
|
2244
|
+
account_id = 'account_id_example' # String | WhatsApp social account ID
|
|
2245
|
+
file = File.new('/path/to/some/file') # File | Image file (JPEG or PNG, max 5MB, recommended 640x640)
|
|
2246
|
+
|
|
2247
|
+
begin
|
|
2248
|
+
# Upload profile picture
|
|
2249
|
+
result = api_instance.upload_whats_app_profile_photo(account_id, file)
|
|
2250
|
+
p result
|
|
2251
|
+
rescue Late::ApiError => e
|
|
2252
|
+
puts "Error when calling WhatsAppApi->upload_whats_app_profile_photo: #{e}"
|
|
2253
|
+
end
|
|
2254
|
+
```
|
|
2255
|
+
|
|
2256
|
+
#### Using the upload_whats_app_profile_photo_with_http_info variant
|
|
2257
|
+
|
|
2258
|
+
This returns an Array which contains the response data, status code and headers.
|
|
2259
|
+
|
|
2260
|
+
> <Array(<UnpublishPost200Response>, Integer, Hash)> upload_whats_app_profile_photo_with_http_info(account_id, file)
|
|
2261
|
+
|
|
2262
|
+
```ruby
|
|
2263
|
+
begin
|
|
2264
|
+
# Upload profile picture
|
|
2265
|
+
data, status_code, headers = api_instance.upload_whats_app_profile_photo_with_http_info(account_id, file)
|
|
2266
|
+
p status_code # => 2xx
|
|
2267
|
+
p headers # => { ... }
|
|
2268
|
+
p data # => <UnpublishPost200Response>
|
|
2269
|
+
rescue Late::ApiError => e
|
|
2270
|
+
puts "Error when calling WhatsAppApi->upload_whats_app_profile_photo_with_http_info: #{e}"
|
|
2271
|
+
end
|
|
2272
|
+
```
|
|
2273
|
+
|
|
2274
|
+
### Parameters
|
|
2275
|
+
|
|
2276
|
+
| Name | Type | Description | Notes |
|
|
2277
|
+
| ---- | ---- | ----------- | ----- |
|
|
2278
|
+
| **account_id** | **String** | WhatsApp social account ID | |
|
|
2279
|
+
| **file** | **File** | Image file (JPEG or PNG, max 5MB, recommended 640x640) | |
|
|
2280
|
+
|
|
2281
|
+
### Return type
|
|
2282
|
+
|
|
2283
|
+
[**UnpublishPost200Response**](UnpublishPost200Response.md)
|
|
2284
|
+
|
|
2285
|
+
### Authorization
|
|
2286
|
+
|
|
2287
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
2288
|
+
|
|
2289
|
+
### HTTP request headers
|
|
2290
|
+
|
|
2291
|
+
- **Content-Type**: multipart/form-data
|
|
2292
|
+
- **Accept**: application/json
|
|
2293
|
+
|