late-sdk 0.0.49 → 0.0.51

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/docs/AccountWithFollowerStats.md +3 -1
  4. data/docs/AccountWithFollowerStatsAllOfAccountStats.md +38 -0
  5. data/docs/GMBAttributesApi.md +16 -8
  6. data/docs/GMBFoodMenusApi.md +16 -8
  7. data/docs/GMBLocationDetailsApi.md +10 -4
  8. data/docs/GMBMediaApi.md +18 -8
  9. data/docs/GMBPlaceActionsApi.md +18 -8
  10. data/docs/GMBReviewsApi.md +2 -0
  11. data/docs/GetWhatsAppDisplayName200Response.md +20 -0
  12. data/docs/GetWhatsAppDisplayName200ResponseDisplayName.md +22 -0
  13. data/docs/UpdateWhatsAppDisplayName200Response.md +22 -0
  14. data/docs/UpdateWhatsAppDisplayName200ResponseDisplayName.md +20 -0
  15. data/docs/UpdateWhatsAppDisplayNameRequest.md +20 -0
  16. data/docs/WhatsAppApi.md +212 -0
  17. data/lib/late-sdk/api/gmb_attributes_api.rb +6 -0
  18. data/lib/late-sdk/api/gmb_food_menus_api.rb +6 -0
  19. data/lib/late-sdk/api/gmb_location_details_api.rb +6 -0
  20. data/lib/late-sdk/api/gmb_media_api.rb +9 -0
  21. data/lib/late-sdk/api/gmb_place_actions_api.rb +9 -0
  22. data/lib/late-sdk/api/gmb_reviews_api.rb +3 -0
  23. data/lib/late-sdk/api/whats_app_api.rb +208 -0
  24. data/lib/late-sdk/models/account_with_follower_stats.rb +13 -4
  25. data/lib/late-sdk/models/account_with_follower_stats_all_of_account_stats.rb +249 -0
  26. data/lib/late-sdk/models/get_whats_app_display_name200_response.rb +156 -0
  27. data/lib/late-sdk/models/get_whats_app_display_name200_response_display_name.rb +202 -0
  28. data/lib/late-sdk/models/update_whats_app_display_name200_response.rb +165 -0
  29. data/lib/late-sdk/models/update_whats_app_display_name200_response_display_name.rb +190 -0
  30. data/lib/late-sdk/models/update_whats_app_display_name_request.rb +210 -0
  31. data/lib/late-sdk/version.rb +1 -1
  32. data/lib/late-sdk.rb +6 -0
  33. data/openapi.yaml +194 -0
  34. data/spec/api/gmb_attributes_api_spec.rb +2 -0
  35. data/spec/api/gmb_food_menus_api_spec.rb +2 -0
  36. data/spec/api/gmb_location_details_api_spec.rb +2 -0
  37. data/spec/api/gmb_media_api_spec.rb +3 -0
  38. data/spec/api/gmb_place_actions_api_spec.rb +3 -0
  39. data/spec/api/gmb_reviews_api_spec.rb +1 -0
  40. data/spec/api/whats_app_api_spec.rb +37 -0
  41. data/spec/models/account_with_follower_stats_all_of_account_stats_spec.rb +96 -0
  42. data/spec/models/account_with_follower_stats_spec.rb +6 -0
  43. data/spec/models/get_whats_app_display_name200_response_display_name_spec.rb +52 -0
  44. data/spec/models/get_whats_app_display_name200_response_spec.rb +42 -0
  45. data/spec/models/update_whats_app_display_name200_response_display_name_spec.rb +46 -0
  46. data/spec/models/update_whats_app_display_name200_response_spec.rb +48 -0
  47. data/spec/models/update_whats_app_display_name_request_spec.rb +42 -0
  48. metadata +25 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd950ac778769e623fe4e8616d57203bdb8a7c98d3e0491656210fd959956fa2
4
- data.tar.gz: 9f1224557d411a16d08b941c68ba35acb7817f0870e167ac294afbb7ff00f1aa
3
+ metadata.gz: bf4c3265d4932e3103b69d802ac2a5347c27f2d969f5df6bd229580c28065015
4
+ data.tar.gz: e8c1082d359c463f2e3c0cc582058ac8a2a8aa8214203fd488a61ff7471d8d3c
5
5
  SHA512:
6
- metadata.gz: d8730441a5629fb993817e0159d9f49c3a303eca11b1a9161bd7e44c6cceb61aede23177001a1f52108c9b63d7f02a37bf647dbe0a295d3b2ffbd972febd4a07
7
- data.tar.gz: 1bb7aa5f659731c29496c80851d3518bc0faf711e2fe31c95ba0b48092dd25cc53ee1b322aa403f3ea98be4aaaf55937bc8260bb7aa8bcc4bbe8dc466c234c77
6
+ metadata.gz: 7aa813e4755a472db5f127884cc237ea12cff4a6602a355d693d4aef9befa85a4cb57c2b3fdcc224a82b64327aee9a63edd0447f754a18b38a08589f6398f0c1
7
+ data.tar.gz: 3419597e3854cf75f591d0cb67ca0860567469b7c57a9d32be17a4170420b60039e6386af9ffd7d5a570e458b7e0daad07d915dac98f51a43e695e9acc4fbc27
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
+
@@ -10,7 +10,7 @@ All URIs are relative to *https://getlate.dev/api*
10
10
 
11
11
  ## get_google_business_attributes
12
12
 
13
- > <GetGoogleBusinessAttributes200Response> get_google_business_attributes(account_id)
13
+ > <GetGoogleBusinessAttributes200Response> get_google_business_attributes(account_id, opts)
14
14
 
15
15
  Get attributes
16
16
 
@@ -29,10 +29,13 @@ end
29
29
 
30
30
  api_instance = Late::GMBAttributesApi.new
31
31
  account_id = 'account_id_example' # String |
32
+ opts = {
33
+ location_id: 'location_id_example' # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
34
+ }
32
35
 
33
36
  begin
34
37
  # Get attributes
35
- result = api_instance.get_google_business_attributes(account_id)
38
+ result = api_instance.get_google_business_attributes(account_id, opts)
36
39
  p result
37
40
  rescue Late::ApiError => e
38
41
  puts "Error when calling GMBAttributesApi->get_google_business_attributes: #{e}"
@@ -43,12 +46,12 @@ end
43
46
 
44
47
  This returns an Array which contains the response data, status code and headers.
45
48
 
46
- > <Array(<GetGoogleBusinessAttributes200Response>, Integer, Hash)> get_google_business_attributes_with_http_info(account_id)
49
+ > <Array(<GetGoogleBusinessAttributes200Response>, Integer, Hash)> get_google_business_attributes_with_http_info(account_id, opts)
47
50
 
48
51
  ```ruby
49
52
  begin
50
53
  # Get attributes
51
- data, status_code, headers = api_instance.get_google_business_attributes_with_http_info(account_id)
54
+ data, status_code, headers = api_instance.get_google_business_attributes_with_http_info(account_id, opts)
52
55
  p status_code # => 2xx
53
56
  p headers # => { ... }
54
57
  p data # => <GetGoogleBusinessAttributes200Response>
@@ -62,6 +65,7 @@ end
62
65
  | Name | Type | Description | Notes |
63
66
  | ---- | ---- | ----------- | ----- |
64
67
  | **account_id** | **String** | | |
68
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
65
69
 
66
70
  ### Return type
67
71
 
@@ -79,7 +83,7 @@ end
79
83
 
80
84
  ## update_google_business_attributes
81
85
 
82
- > <UpdateGoogleBusinessAttributes200Response> update_google_business_attributes(account_id, update_google_business_attributes_request)
86
+ > <UpdateGoogleBusinessAttributes200Response> update_google_business_attributes(account_id, update_google_business_attributes_request, opts)
83
87
 
84
88
  Update attributes
85
89
 
@@ -99,10 +103,13 @@ end
99
103
  api_instance = Late::GMBAttributesApi.new
100
104
  account_id = 'account_id_example' # String |
101
105
  update_google_business_attributes_request = Late::UpdateGoogleBusinessAttributesRequest.new({attributes: [Late::UpdateGoogleBusinessAttributesRequestAttributesInner.new], attribute_mask: 'attribute_mask_example'}) # UpdateGoogleBusinessAttributesRequest |
106
+ opts = {
107
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
108
+ }
102
109
 
103
110
  begin
104
111
  # Update attributes
105
- result = api_instance.update_google_business_attributes(account_id, update_google_business_attributes_request)
112
+ result = api_instance.update_google_business_attributes(account_id, update_google_business_attributes_request, opts)
106
113
  p result
107
114
  rescue Late::ApiError => e
108
115
  puts "Error when calling GMBAttributesApi->update_google_business_attributes: #{e}"
@@ -113,12 +120,12 @@ end
113
120
 
114
121
  This returns an Array which contains the response data, status code and headers.
115
122
 
116
- > <Array(<UpdateGoogleBusinessAttributes200Response>, Integer, Hash)> update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request)
123
+ > <Array(<UpdateGoogleBusinessAttributes200Response>, Integer, Hash)> update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request, opts)
117
124
 
118
125
  ```ruby
119
126
  begin
120
127
  # Update attributes
121
- data, status_code, headers = api_instance.update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request)
128
+ data, status_code, headers = api_instance.update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request, opts)
122
129
  p status_code # => 2xx
123
130
  p headers # => { ... }
124
131
  p data # => <UpdateGoogleBusinessAttributes200Response>
@@ -133,6 +140,7 @@ end
133
140
  | ---- | ---- | ----------- | ----- |
134
141
  | **account_id** | **String** | | |
135
142
  | **update_google_business_attributes_request** | [**UpdateGoogleBusinessAttributesRequest**](UpdateGoogleBusinessAttributesRequest.md) | | |
143
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
136
144
 
137
145
  ### Return type
138
146
 
@@ -10,7 +10,7 @@ All URIs are relative to *https://getlate.dev/api*
10
10
 
11
11
  ## get_google_business_food_menus
12
12
 
13
- > <GetGoogleBusinessFoodMenus200Response> get_google_business_food_menus(account_id)
13
+ > <GetGoogleBusinessFoodMenus200Response> get_google_business_food_menus(account_id, opts)
14
14
 
15
15
  Get food menus
16
16
 
@@ -29,10 +29,13 @@ end
29
29
 
30
30
  api_instance = Late::GMBFoodMenusApi.new
31
31
  account_id = 'account_id_example' # String | The Late account ID (from /v1/accounts)
32
+ opts = {
33
+ location_id: 'location_id_example' # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
34
+ }
32
35
 
33
36
  begin
34
37
  # Get food menus
35
- result = api_instance.get_google_business_food_menus(account_id)
38
+ result = api_instance.get_google_business_food_menus(account_id, opts)
36
39
  p result
37
40
  rescue Late::ApiError => e
38
41
  puts "Error when calling GMBFoodMenusApi->get_google_business_food_menus: #{e}"
@@ -43,12 +46,12 @@ end
43
46
 
44
47
  This returns an Array which contains the response data, status code and headers.
45
48
 
46
- > <Array(<GetGoogleBusinessFoodMenus200Response>, Integer, Hash)> get_google_business_food_menus_with_http_info(account_id)
49
+ > <Array(<GetGoogleBusinessFoodMenus200Response>, Integer, Hash)> get_google_business_food_menus_with_http_info(account_id, opts)
47
50
 
48
51
  ```ruby
49
52
  begin
50
53
  # Get food menus
51
- data, status_code, headers = api_instance.get_google_business_food_menus_with_http_info(account_id)
54
+ data, status_code, headers = api_instance.get_google_business_food_menus_with_http_info(account_id, opts)
52
55
  p status_code # => 2xx
53
56
  p headers # => { ... }
54
57
  p data # => <GetGoogleBusinessFoodMenus200Response>
@@ -62,6 +65,7 @@ end
62
65
  | Name | Type | Description | Notes |
63
66
  | ---- | ---- | ----------- | ----- |
64
67
  | **account_id** | **String** | The Late account ID (from /v1/accounts) | |
68
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
65
69
 
66
70
  ### Return type
67
71
 
@@ -79,7 +83,7 @@ end
79
83
 
80
84
  ## update_google_business_food_menus
81
85
 
82
- > <UpdateGoogleBusinessFoodMenus200Response> update_google_business_food_menus(account_id, update_google_business_food_menus_request)
86
+ > <UpdateGoogleBusinessFoodMenus200Response> update_google_business_food_menus(account_id, update_google_business_food_menus_request, opts)
83
87
 
84
88
  Update food menus
85
89
 
@@ -99,10 +103,13 @@ end
99
103
  api_instance = Late::GMBFoodMenusApi.new
100
104
  account_id = 'account_id_example' # String | The Late account ID (from /v1/accounts)
101
105
  update_google_business_food_menus_request = Late::UpdateGoogleBusinessFoodMenusRequest.new({menus: [Late::FoodMenu.new({labels: [Late::FoodMenuLabel.new({display_name: 'display_name_example'})]})]}) # UpdateGoogleBusinessFoodMenusRequest |
106
+ opts = {
107
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
108
+ }
102
109
 
103
110
  begin
104
111
  # Update food menus
105
- result = api_instance.update_google_business_food_menus(account_id, update_google_business_food_menus_request)
112
+ result = api_instance.update_google_business_food_menus(account_id, update_google_business_food_menus_request, opts)
106
113
  p result
107
114
  rescue Late::ApiError => e
108
115
  puts "Error when calling GMBFoodMenusApi->update_google_business_food_menus: #{e}"
@@ -113,12 +120,12 @@ end
113
120
 
114
121
  This returns an Array which contains the response data, status code and headers.
115
122
 
116
- > <Array(<UpdateGoogleBusinessFoodMenus200Response>, Integer, Hash)> update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request)
123
+ > <Array(<UpdateGoogleBusinessFoodMenus200Response>, Integer, Hash)> update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts)
117
124
 
118
125
  ```ruby
119
126
  begin
120
127
  # Update food menus
121
- data, status_code, headers = api_instance.update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request)
128
+ data, status_code, headers = api_instance.update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts)
122
129
  p status_code # => 2xx
123
130
  p headers # => { ... }
124
131
  p data # => <UpdateGoogleBusinessFoodMenus200Response>
@@ -133,6 +140,7 @@ end
133
140
  | ---- | ---- | ----------- | ----- |
134
141
  | **account_id** | **String** | The Late account ID (from /v1/accounts) | |
135
142
  | **update_google_business_food_menus_request** | [**UpdateGoogleBusinessFoodMenusRequest**](UpdateGoogleBusinessFoodMenusRequest.md) | | |
143
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
136
144
 
137
145
  ### Return type
138
146
 
@@ -30,6 +30,7 @@ end
30
30
  api_instance = Late::GMBLocationDetailsApi.new
31
31
  account_id = 'account_id_example' # String | The Late account ID (from /v1/accounts)
32
32
  opts = {
33
+ location_id: 'location_id_example', # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
33
34
  read_mask: 'read_mask_example' # String | Comma-separated fields to return. Available: name, title, phoneNumbers, categories, storefrontAddress, websiteUri, regularHours, specialHours, serviceArea, profile, openInfo, metadata, moreHours.
34
35
  }
35
36
 
@@ -65,6 +66,7 @@ end
65
66
  | Name | Type | Description | Notes |
66
67
  | ---- | ---- | ----------- | ----- |
67
68
  | **account_id** | **String** | The Late account ID (from /v1/accounts) | |
69
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
68
70
  | **read_mask** | **String** | Comma-separated fields to return. Available: name, title, phoneNumbers, categories, storefrontAddress, websiteUri, regularHours, specialHours, serviceArea, profile, openInfo, metadata, moreHours. | [optional] |
69
71
 
70
72
  ### Return type
@@ -83,7 +85,7 @@ end
83
85
 
84
86
  ## update_google_business_location_details
85
87
 
86
- > <UpdateGoogleBusinessLocationDetails200Response> update_google_business_location_details(account_id, update_google_business_location_details_request)
88
+ > <UpdateGoogleBusinessLocationDetails200Response> update_google_business_location_details(account_id, update_google_business_location_details_request, opts)
87
89
 
88
90
  Update location details
89
91
 
@@ -103,10 +105,13 @@ end
103
105
  api_instance = Late::GMBLocationDetailsApi.new
104
106
  account_id = 'account_id_example' # String | The Late account ID (from /v1/accounts)
105
107
  update_google_business_location_details_request = Late::UpdateGoogleBusinessLocationDetailsRequest.new({update_mask: 'update_mask_example'}) # UpdateGoogleBusinessLocationDetailsRequest |
108
+ opts = {
109
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
110
+ }
106
111
 
107
112
  begin
108
113
  # Update location details
109
- result = api_instance.update_google_business_location_details(account_id, update_google_business_location_details_request)
114
+ result = api_instance.update_google_business_location_details(account_id, update_google_business_location_details_request, opts)
110
115
  p result
111
116
  rescue Late::ApiError => e
112
117
  puts "Error when calling GMBLocationDetailsApi->update_google_business_location_details: #{e}"
@@ -117,12 +122,12 @@ end
117
122
 
118
123
  This returns an Array which contains the response data, status code and headers.
119
124
 
120
- > <Array(<UpdateGoogleBusinessLocationDetails200Response>, Integer, Hash)> update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request)
125
+ > <Array(<UpdateGoogleBusinessLocationDetails200Response>, Integer, Hash)> update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request, opts)
121
126
 
122
127
  ```ruby
123
128
  begin
124
129
  # Update location details
125
- data, status_code, headers = api_instance.update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request)
130
+ data, status_code, headers = api_instance.update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request, opts)
126
131
  p status_code # => 2xx
127
132
  p headers # => { ... }
128
133
  p data # => <UpdateGoogleBusinessLocationDetails200Response>
@@ -137,6 +142,7 @@ end
137
142
  | ---- | ---- | ----------- | ----- |
138
143
  | **account_id** | **String** | The Late account ID (from /v1/accounts) | |
139
144
  | **update_google_business_location_details_request** | [**UpdateGoogleBusinessLocationDetailsRequest**](UpdateGoogleBusinessLocationDetailsRequest.md) | | |
145
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
140
146
 
141
147
  ### Return type
142
148
 
data/docs/GMBMediaApi.md CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://getlate.dev/api*
11
11
 
12
12
  ## create_google_business_media
13
13
 
14
- > <CreateGoogleBusinessMedia200Response> create_google_business_media(account_id, create_google_business_media_request)
14
+ > <CreateGoogleBusinessMedia200Response> create_google_business_media(account_id, create_google_business_media_request, opts)
15
15
 
16
16
  Upload photo
17
17
 
@@ -31,10 +31,13 @@ end
31
31
  api_instance = Late::GMBMediaApi.new
32
32
  account_id = 'account_id_example' # String |
33
33
  create_google_business_media_request = Late::CreateGoogleBusinessMediaRequest.new({source_url: 'source_url_example'}) # CreateGoogleBusinessMediaRequest |
34
+ opts = {
35
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
36
+ }
34
37
 
35
38
  begin
36
39
  # Upload photo
37
- result = api_instance.create_google_business_media(account_id, create_google_business_media_request)
40
+ result = api_instance.create_google_business_media(account_id, create_google_business_media_request, opts)
38
41
  p result
39
42
  rescue Late::ApiError => e
40
43
  puts "Error when calling GMBMediaApi->create_google_business_media: #{e}"
@@ -45,12 +48,12 @@ end
45
48
 
46
49
  This returns an Array which contains the response data, status code and headers.
47
50
 
48
- > <Array(<CreateGoogleBusinessMedia200Response>, Integer, Hash)> create_google_business_media_with_http_info(account_id, create_google_business_media_request)
51
+ > <Array(<CreateGoogleBusinessMedia200Response>, Integer, Hash)> create_google_business_media_with_http_info(account_id, create_google_business_media_request, opts)
49
52
 
50
53
  ```ruby
51
54
  begin
52
55
  # Upload photo
53
- data, status_code, headers = api_instance.create_google_business_media_with_http_info(account_id, create_google_business_media_request)
56
+ data, status_code, headers = api_instance.create_google_business_media_with_http_info(account_id, create_google_business_media_request, opts)
54
57
  p status_code # => 2xx
55
58
  p headers # => { ... }
56
59
  p data # => <CreateGoogleBusinessMedia200Response>
@@ -65,6 +68,7 @@ end
65
68
  | ---- | ---- | ----------- | ----- |
66
69
  | **account_id** | **String** | | |
67
70
  | **create_google_business_media_request** | [**CreateGoogleBusinessMediaRequest**](CreateGoogleBusinessMediaRequest.md) | | |
71
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
68
72
 
69
73
  ### Return type
70
74
 
@@ -82,7 +86,7 @@ end
82
86
 
83
87
  ## delete_google_business_media
84
88
 
85
- > <DeleteGoogleBusinessMedia200Response> delete_google_business_media(account_id, media_id)
89
+ > <DeleteGoogleBusinessMedia200Response> delete_google_business_media(account_id, media_id, opts)
86
90
 
87
91
  Delete photo
88
92
 
@@ -102,10 +106,13 @@ end
102
106
  api_instance = Late::GMBMediaApi.new
103
107
  account_id = 'account_id_example' # String |
104
108
  media_id = 'media_id_example' # String | The media item ID to delete
109
+ opts = {
110
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
111
+ }
105
112
 
106
113
  begin
107
114
  # Delete photo
108
- result = api_instance.delete_google_business_media(account_id, media_id)
115
+ result = api_instance.delete_google_business_media(account_id, media_id, opts)
109
116
  p result
110
117
  rescue Late::ApiError => e
111
118
  puts "Error when calling GMBMediaApi->delete_google_business_media: #{e}"
@@ -116,12 +123,12 @@ end
116
123
 
117
124
  This returns an Array which contains the response data, status code and headers.
118
125
 
119
- > <Array(<DeleteGoogleBusinessMedia200Response>, Integer, Hash)> delete_google_business_media_with_http_info(account_id, media_id)
126
+ > <Array(<DeleteGoogleBusinessMedia200Response>, Integer, Hash)> delete_google_business_media_with_http_info(account_id, media_id, opts)
120
127
 
121
128
  ```ruby
122
129
  begin
123
130
  # Delete photo
124
- data, status_code, headers = api_instance.delete_google_business_media_with_http_info(account_id, media_id)
131
+ data, status_code, headers = api_instance.delete_google_business_media_with_http_info(account_id, media_id, opts)
125
132
  p status_code # => 2xx
126
133
  p headers # => { ... }
127
134
  p data # => <DeleteGoogleBusinessMedia200Response>
@@ -136,6 +143,7 @@ end
136
143
  | ---- | ---- | ----------- | ----- |
137
144
  | **account_id** | **String** | | |
138
145
  | **media_id** | **String** | The media item ID to delete | |
146
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
139
147
 
140
148
  ### Return type
141
149
 
@@ -173,6 +181,7 @@ end
173
181
  api_instance = Late::GMBMediaApi.new
174
182
  account_id = 'account_id_example' # String |
175
183
  opts = {
184
+ location_id: 'location_id_example', # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
176
185
  page_size: 56, # Integer | Number of items to return (max 100)
177
186
  page_token: 'page_token_example' # String | Pagination token from previous response
178
187
  }
@@ -209,6 +218,7 @@ end
209
218
  | Name | Type | Description | Notes |
210
219
  | ---- | ---- | ----------- | ----- |
211
220
  | **account_id** | **String** | | |
221
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
212
222
  | **page_size** | **Integer** | Number of items to return (max 100) | [optional][default to 100] |
213
223
  | **page_token** | **String** | Pagination token from previous response | [optional] |
214
224
 
@@ -11,7 +11,7 @@ All URIs are relative to *https://getlate.dev/api*
11
11
 
12
12
  ## create_google_business_place_action
13
13
 
14
- > <CreateGoogleBusinessPlaceAction200Response> create_google_business_place_action(account_id, create_google_business_place_action_request)
14
+ > <CreateGoogleBusinessPlaceAction200Response> create_google_business_place_action(account_id, create_google_business_place_action_request, opts)
15
15
 
16
16
  Create action link
17
17
 
@@ -31,10 +31,13 @@ end
31
31
  api_instance = Late::GMBPlaceActionsApi.new
32
32
  account_id = 'account_id_example' # String |
33
33
  create_google_business_place_action_request = Late::CreateGoogleBusinessPlaceActionRequest.new({uri: 'uri_example', place_action_type: 'APPOINTMENT'}) # CreateGoogleBusinessPlaceActionRequest |
34
+ opts = {
35
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
36
+ }
34
37
 
35
38
  begin
36
39
  # Create action link
37
- result = api_instance.create_google_business_place_action(account_id, create_google_business_place_action_request)
40
+ result = api_instance.create_google_business_place_action(account_id, create_google_business_place_action_request, opts)
38
41
  p result
39
42
  rescue Late::ApiError => e
40
43
  puts "Error when calling GMBPlaceActionsApi->create_google_business_place_action: #{e}"
@@ -45,12 +48,12 @@ end
45
48
 
46
49
  This returns an Array which contains the response data, status code and headers.
47
50
 
48
- > <Array(<CreateGoogleBusinessPlaceAction200Response>, Integer, Hash)> create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request)
51
+ > <Array(<CreateGoogleBusinessPlaceAction200Response>, Integer, Hash)> create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request, opts)
49
52
 
50
53
  ```ruby
51
54
  begin
52
55
  # Create action link
53
- data, status_code, headers = api_instance.create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request)
56
+ data, status_code, headers = api_instance.create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request, opts)
54
57
  p status_code # => 2xx
55
58
  p headers # => { ... }
56
59
  p data # => <CreateGoogleBusinessPlaceAction200Response>
@@ -65,6 +68,7 @@ end
65
68
  | ---- | ---- | ----------- | ----- |
66
69
  | **account_id** | **String** | | |
67
70
  | **create_google_business_place_action_request** | [**CreateGoogleBusinessPlaceActionRequest**](CreateGoogleBusinessPlaceActionRequest.md) | | |
71
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
68
72
 
69
73
  ### Return type
70
74
 
@@ -82,7 +86,7 @@ end
82
86
 
83
87
  ## delete_google_business_place_action
84
88
 
85
- > <DeleteGoogleBusinessPlaceAction200Response> delete_google_business_place_action(account_id, name)
89
+ > <DeleteGoogleBusinessPlaceAction200Response> delete_google_business_place_action(account_id, name, opts)
86
90
 
87
91
  Delete action link
88
92
 
@@ -102,10 +106,13 @@ end
102
106
  api_instance = Late::GMBPlaceActionsApi.new
103
107
  account_id = 'account_id_example' # String |
104
108
  name = 'name_example' # String | The resource name of the place action link (e.g. locations/123/placeActionLinks/456)
109
+ opts = {
110
+ location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
111
+ }
105
112
 
106
113
  begin
107
114
  # Delete action link
108
- result = api_instance.delete_google_business_place_action(account_id, name)
115
+ result = api_instance.delete_google_business_place_action(account_id, name, opts)
109
116
  p result
110
117
  rescue Late::ApiError => e
111
118
  puts "Error when calling GMBPlaceActionsApi->delete_google_business_place_action: #{e}"
@@ -116,12 +123,12 @@ end
116
123
 
117
124
  This returns an Array which contains the response data, status code and headers.
118
125
 
119
- > <Array(<DeleteGoogleBusinessPlaceAction200Response>, Integer, Hash)> delete_google_business_place_action_with_http_info(account_id, name)
126
+ > <Array(<DeleteGoogleBusinessPlaceAction200Response>, Integer, Hash)> delete_google_business_place_action_with_http_info(account_id, name, opts)
120
127
 
121
128
  ```ruby
122
129
  begin
123
130
  # Delete action link
124
- data, status_code, headers = api_instance.delete_google_business_place_action_with_http_info(account_id, name)
131
+ data, status_code, headers = api_instance.delete_google_business_place_action_with_http_info(account_id, name, opts)
125
132
  p status_code # => 2xx
126
133
  p headers # => { ... }
127
134
  p data # => <DeleteGoogleBusinessPlaceAction200Response>
@@ -136,6 +143,7 @@ end
136
143
  | ---- | ---- | ----------- | ----- |
137
144
  | **account_id** | **String** | | |
138
145
  | **name** | **String** | The resource name of the place action link (e.g. locations/123/placeActionLinks/456) | |
146
+ | **location_id** | **String** | Override which location to target. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
139
147
 
140
148
  ### Return type
141
149
 
@@ -173,6 +181,7 @@ end
173
181
  api_instance = Late::GMBPlaceActionsApi.new
174
182
  account_id = 'account_id_example' # String |
175
183
  opts = {
184
+ location_id: 'location_id_example', # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
176
185
  page_size: 56, # Integer |
177
186
  page_token: 'page_token_example' # String |
178
187
  }
@@ -209,6 +218,7 @@ end
209
218
  | Name | Type | Description | Notes |
210
219
  | ---- | ---- | ----------- | ----- |
211
220
  | **account_id** | **String** | | |
221
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
212
222
  | **page_size** | **Integer** | | [optional][default to 100] |
213
223
  | **page_token** | **String** | | [optional] |
214
224
 
@@ -29,6 +29,7 @@ end
29
29
  api_instance = Late::GMBReviewsApi.new
30
30
  account_id = 'account_id_example' # String | The Late account ID (from /v1/accounts)
31
31
  opts = {
32
+ location_id: 'location_id_example', # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
32
33
  page_size: 56, # Integer | Number of reviews to fetch per page (max 50)
33
34
  page_token: 'page_token_example' # String | Pagination token from previous response
34
35
  }
@@ -65,6 +66,7 @@ end
65
66
  | Name | Type | Description | Notes |
66
67
  | ---- | ---- | ----------- | ----- |
67
68
  | **account_id** | **String** | The Late account ID (from /v1/accounts) | |
69
+ | **location_id** | **String** | Override which location to query. If omitted, uses the account&#39;s selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
68
70
  | **page_size** | **Integer** | Number of reviews to fetch per page (max 50) | [optional][default to 50] |
69
71
  | **page_token** | **String** | Pagination token from previous response | [optional] |
70
72
 
@@ -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
+