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.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/docs/AccountWithFollowerStats.md +3 -1
- data/docs/AccountWithFollowerStatsAllOfAccountStats.md +38 -0
- data/docs/GMBAttributesApi.md +16 -8
- data/docs/GMBFoodMenusApi.md +16 -8
- data/docs/GMBLocationDetailsApi.md +10 -4
- data/docs/GMBMediaApi.md +18 -8
- data/docs/GMBPlaceActionsApi.md +18 -8
- data/docs/GMBReviewsApi.md +2 -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/WhatsAppApi.md +212 -0
- data/lib/late-sdk/api/gmb_attributes_api.rb +6 -0
- data/lib/late-sdk/api/gmb_food_menus_api.rb +6 -0
- data/lib/late-sdk/api/gmb_location_details_api.rb +6 -0
- data/lib/late-sdk/api/gmb_media_api.rb +9 -0
- data/lib/late-sdk/api/gmb_place_actions_api.rb +9 -0
- data/lib/late-sdk/api/gmb_reviews_api.rb +3 -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/version.rb +1 -1
- data/lib/late-sdk.rb +6 -0
- data/openapi.yaml +194 -0
- data/spec/api/gmb_attributes_api_spec.rb +2 -0
- data/spec/api/gmb_food_menus_api_spec.rb +2 -0
- data/spec/api/gmb_location_details_api_spec.rb +2 -0
- data/spec/api/gmb_media_api_spec.rb +3 -0
- data/spec/api/gmb_place_actions_api_spec.rb +3 -0
- data/spec/api/gmb_reviews_api_spec.rb +1 -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
- metadata +25 -1
|
@@ -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/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
|
+
|
|
@@ -23,6 +23,7 @@ module Late
|
|
|
23
23
|
# Returns GBP location attributes (amenities, services, accessibility, payment types). Available attributes vary by business category.
|
|
24
24
|
# @param account_id [String]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
26
27
|
# @return [GetGoogleBusinessAttributes200Response]
|
|
27
28
|
def get_google_business_attributes(account_id, opts = {})
|
|
28
29
|
data, _status_code, _headers = get_google_business_attributes_with_http_info(account_id, opts)
|
|
@@ -33,6 +34,7 @@ module Late
|
|
|
33
34
|
# Returns GBP location attributes (amenities, services, accessibility, payment types). Available attributes vary by business category.
|
|
34
35
|
# @param account_id [String]
|
|
35
36
|
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
36
38
|
# @return [Array<(GetGoogleBusinessAttributes200Response, Integer, Hash)>] GetGoogleBusinessAttributes200Response data, response status code and response headers
|
|
37
39
|
def get_google_business_attributes_with_http_info(account_id, opts = {})
|
|
38
40
|
if @api_client.config.debugging
|
|
@@ -47,6 +49,7 @@ module Late
|
|
|
47
49
|
|
|
48
50
|
# query parameters
|
|
49
51
|
query_params = opts[:query_params] || {}
|
|
52
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
50
53
|
|
|
51
54
|
# header parameters
|
|
52
55
|
header_params = opts[:header_params] || {}
|
|
@@ -87,6 +90,7 @@ module Late
|
|
|
87
90
|
# @param account_id [String]
|
|
88
91
|
# @param update_google_business_attributes_request [UpdateGoogleBusinessAttributesRequest]
|
|
89
92
|
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
90
94
|
# @return [UpdateGoogleBusinessAttributes200Response]
|
|
91
95
|
def update_google_business_attributes(account_id, update_google_business_attributes_request, opts = {})
|
|
92
96
|
data, _status_code, _headers = update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request, opts)
|
|
@@ -98,6 +102,7 @@ module Late
|
|
|
98
102
|
# @param account_id [String]
|
|
99
103
|
# @param update_google_business_attributes_request [UpdateGoogleBusinessAttributesRequest]
|
|
100
104
|
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
101
106
|
# @return [Array<(UpdateGoogleBusinessAttributes200Response, Integer, Hash)>] UpdateGoogleBusinessAttributes200Response data, response status code and response headers
|
|
102
107
|
def update_google_business_attributes_with_http_info(account_id, update_google_business_attributes_request, opts = {})
|
|
103
108
|
if @api_client.config.debugging
|
|
@@ -116,6 +121,7 @@ module Late
|
|
|
116
121
|
|
|
117
122
|
# query parameters
|
|
118
123
|
query_params = opts[:query_params] || {}
|
|
124
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
119
125
|
|
|
120
126
|
# header parameters
|
|
121
127
|
header_params = opts[:header_params] || {}
|
|
@@ -23,6 +23,7 @@ module Late
|
|
|
23
23
|
# Returns food menus for a GBP location including sections, items, pricing, and dietary info. Only for locations with food menu support.
|
|
24
24
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
26
27
|
# @return [GetGoogleBusinessFoodMenus200Response]
|
|
27
28
|
def get_google_business_food_menus(account_id, opts = {})
|
|
28
29
|
data, _status_code, _headers = get_google_business_food_menus_with_http_info(account_id, opts)
|
|
@@ -33,6 +34,7 @@ module Late
|
|
|
33
34
|
# Returns food menus for a GBP location including sections, items, pricing, and dietary info. Only for locations with food menu support.
|
|
34
35
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
35
36
|
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
36
38
|
# @return [Array<(GetGoogleBusinessFoodMenus200Response, Integer, Hash)>] GetGoogleBusinessFoodMenus200Response data, response status code and response headers
|
|
37
39
|
def get_google_business_food_menus_with_http_info(account_id, opts = {})
|
|
38
40
|
if @api_client.config.debugging
|
|
@@ -47,6 +49,7 @@ module Late
|
|
|
47
49
|
|
|
48
50
|
# query parameters
|
|
49
51
|
query_params = opts[:query_params] || {}
|
|
52
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
50
53
|
|
|
51
54
|
# header parameters
|
|
52
55
|
header_params = opts[:header_params] || {}
|
|
@@ -87,6 +90,7 @@ module Late
|
|
|
87
90
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
88
91
|
# @param update_google_business_food_menus_request [UpdateGoogleBusinessFoodMenusRequest]
|
|
89
92
|
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
90
94
|
# @return [UpdateGoogleBusinessFoodMenus200Response]
|
|
91
95
|
def update_google_business_food_menus(account_id, update_google_business_food_menus_request, opts = {})
|
|
92
96
|
data, _status_code, _headers = update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts)
|
|
@@ -98,6 +102,7 @@ module Late
|
|
|
98
102
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
99
103
|
# @param update_google_business_food_menus_request [UpdateGoogleBusinessFoodMenusRequest]
|
|
100
104
|
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
101
106
|
# @return [Array<(UpdateGoogleBusinessFoodMenus200Response, Integer, Hash)>] UpdateGoogleBusinessFoodMenus200Response data, response status code and response headers
|
|
102
107
|
def update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts = {})
|
|
103
108
|
if @api_client.config.debugging
|
|
@@ -116,6 +121,7 @@ module Late
|
|
|
116
121
|
|
|
117
122
|
# query parameters
|
|
118
123
|
query_params = opts[:query_params] || {}
|
|
124
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
119
125
|
|
|
120
126
|
# header parameters
|
|
121
127
|
header_params = opts[:header_params] || {}
|
|
@@ -23,6 +23,7 @@ module Late
|
|
|
23
23
|
# Returns detailed GBP location info (hours, description, phone, website, categories). Use readMask to request specific fields.
|
|
24
24
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
26
27
|
# @option opts [String] :read_mask Comma-separated fields to return. Available: name, title, phoneNumbers, categories, storefrontAddress, websiteUri, regularHours, specialHours, serviceArea, profile, openInfo, metadata, moreHours.
|
|
27
28
|
# @return [GetGoogleBusinessLocationDetails200Response]
|
|
28
29
|
def get_google_business_location_details(account_id, opts = {})
|
|
@@ -34,6 +35,7 @@ module Late
|
|
|
34
35
|
# Returns detailed GBP location info (hours, description, phone, website, categories). Use readMask to request specific fields.
|
|
35
36
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
36
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
37
39
|
# @option opts [String] :read_mask Comma-separated fields to return. Available: name, title, phoneNumbers, categories, storefrontAddress, websiteUri, regularHours, specialHours, serviceArea, profile, openInfo, metadata, moreHours.
|
|
38
40
|
# @return [Array<(GetGoogleBusinessLocationDetails200Response, Integer, Hash)>] GetGoogleBusinessLocationDetails200Response data, response status code and response headers
|
|
39
41
|
def get_google_business_location_details_with_http_info(account_id, opts = {})
|
|
@@ -49,6 +51,7 @@ module Late
|
|
|
49
51
|
|
|
50
52
|
# query parameters
|
|
51
53
|
query_params = opts[:query_params] || {}
|
|
54
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
52
55
|
query_params[:'readMask'] = opts[:'read_mask'] if !opts[:'read_mask'].nil?
|
|
53
56
|
|
|
54
57
|
# header parameters
|
|
@@ -90,6 +93,7 @@ module Late
|
|
|
90
93
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
91
94
|
# @param update_google_business_location_details_request [UpdateGoogleBusinessLocationDetailsRequest]
|
|
92
95
|
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
93
97
|
# @return [UpdateGoogleBusinessLocationDetails200Response]
|
|
94
98
|
def update_google_business_location_details(account_id, update_google_business_location_details_request, opts = {})
|
|
95
99
|
data, _status_code, _headers = update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request, opts)
|
|
@@ -101,6 +105,7 @@ module Late
|
|
|
101
105
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
102
106
|
# @param update_google_business_location_details_request [UpdateGoogleBusinessLocationDetailsRequest]
|
|
103
107
|
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
104
109
|
# @return [Array<(UpdateGoogleBusinessLocationDetails200Response, Integer, Hash)>] UpdateGoogleBusinessLocationDetails200Response data, response status code and response headers
|
|
105
110
|
def update_google_business_location_details_with_http_info(account_id, update_google_business_location_details_request, opts = {})
|
|
106
111
|
if @api_client.config.debugging
|
|
@@ -119,6 +124,7 @@ module Late
|
|
|
119
124
|
|
|
120
125
|
# query parameters
|
|
121
126
|
query_params = opts[:query_params] || {}
|
|
127
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
122
128
|
|
|
123
129
|
# header parameters
|
|
124
130
|
header_params = opts[:header_params] || {}
|
|
@@ -24,6 +24,7 @@ module Late
|
|
|
24
24
|
# @param account_id [String]
|
|
25
25
|
# @param create_google_business_media_request [CreateGoogleBusinessMediaRequest]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
27
28
|
# @return [CreateGoogleBusinessMedia200Response]
|
|
28
29
|
def create_google_business_media(account_id, create_google_business_media_request, opts = {})
|
|
29
30
|
data, _status_code, _headers = create_google_business_media_with_http_info(account_id, create_google_business_media_request, opts)
|
|
@@ -35,6 +36,7 @@ module Late
|
|
|
35
36
|
# @param account_id [String]
|
|
36
37
|
# @param create_google_business_media_request [CreateGoogleBusinessMediaRequest]
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
38
40
|
# @return [Array<(CreateGoogleBusinessMedia200Response, Integer, Hash)>] CreateGoogleBusinessMedia200Response data, response status code and response headers
|
|
39
41
|
def create_google_business_media_with_http_info(account_id, create_google_business_media_request, opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -53,6 +55,7 @@ module Late
|
|
|
53
55
|
|
|
54
56
|
# query parameters
|
|
55
57
|
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
56
59
|
|
|
57
60
|
# header parameters
|
|
58
61
|
header_params = opts[:header_params] || {}
|
|
@@ -98,6 +101,7 @@ module Late
|
|
|
98
101
|
# @param account_id [String]
|
|
99
102
|
# @param media_id [String] The media item ID to delete
|
|
100
103
|
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
101
105
|
# @return [DeleteGoogleBusinessMedia200Response]
|
|
102
106
|
def delete_google_business_media(account_id, media_id, opts = {})
|
|
103
107
|
data, _status_code, _headers = delete_google_business_media_with_http_info(account_id, media_id, opts)
|
|
@@ -109,6 +113,7 @@ module Late
|
|
|
109
113
|
# @param account_id [String]
|
|
110
114
|
# @param media_id [String] The media item ID to delete
|
|
111
115
|
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
112
117
|
# @return [Array<(DeleteGoogleBusinessMedia200Response, Integer, Hash)>] DeleteGoogleBusinessMedia200Response data, response status code and response headers
|
|
113
118
|
def delete_google_business_media_with_http_info(account_id, media_id, opts = {})
|
|
114
119
|
if @api_client.config.debugging
|
|
@@ -128,6 +133,7 @@ module Late
|
|
|
128
133
|
# query parameters
|
|
129
134
|
query_params = opts[:query_params] || {}
|
|
130
135
|
query_params[:'mediaId'] = media_id
|
|
136
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
131
137
|
|
|
132
138
|
# header parameters
|
|
133
139
|
header_params = opts[:header_params] || {}
|
|
@@ -167,6 +173,7 @@ module Late
|
|
|
167
173
|
# Lists media items (photos) for a Google Business Profile location. Returns photo URLs, descriptions, categories, and metadata.
|
|
168
174
|
# @param account_id [String]
|
|
169
175
|
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
170
177
|
# @option opts [Integer] :page_size Number of items to return (max 100) (default to 100)
|
|
171
178
|
# @option opts [String] :page_token Pagination token from previous response
|
|
172
179
|
# @return [ListGoogleBusinessMedia200Response]
|
|
@@ -179,6 +186,7 @@ module Late
|
|
|
179
186
|
# Lists media items (photos) for a Google Business Profile location. Returns photo URLs, descriptions, categories, and metadata.
|
|
180
187
|
# @param account_id [String]
|
|
181
188
|
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
182
190
|
# @option opts [Integer] :page_size Number of items to return (max 100) (default to 100)
|
|
183
191
|
# @option opts [String] :page_token Pagination token from previous response
|
|
184
192
|
# @return [Array<(ListGoogleBusinessMedia200Response, Integer, Hash)>] ListGoogleBusinessMedia200Response data, response status code and response headers
|
|
@@ -199,6 +207,7 @@ module Late
|
|
|
199
207
|
|
|
200
208
|
# query parameters
|
|
201
209
|
query_params = opts[:query_params] || {}
|
|
210
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
202
211
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
203
212
|
query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
204
213
|
|
|
@@ -24,6 +24,7 @@ module Late
|
|
|
24
24
|
# @param account_id [String]
|
|
25
25
|
# @param create_google_business_place_action_request [CreateGoogleBusinessPlaceActionRequest]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
27
28
|
# @return [CreateGoogleBusinessPlaceAction200Response]
|
|
28
29
|
def create_google_business_place_action(account_id, create_google_business_place_action_request, opts = {})
|
|
29
30
|
data, _status_code, _headers = create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request, opts)
|
|
@@ -35,6 +36,7 @@ module Late
|
|
|
35
36
|
# @param account_id [String]
|
|
36
37
|
# @param create_google_business_place_action_request [CreateGoogleBusinessPlaceActionRequest]
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
38
40
|
# @return [Array<(CreateGoogleBusinessPlaceAction200Response, Integer, Hash)>] CreateGoogleBusinessPlaceAction200Response data, response status code and response headers
|
|
39
41
|
def create_google_business_place_action_with_http_info(account_id, create_google_business_place_action_request, opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -53,6 +55,7 @@ module Late
|
|
|
53
55
|
|
|
54
56
|
# query parameters
|
|
55
57
|
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
56
59
|
|
|
57
60
|
# header parameters
|
|
58
61
|
header_params = opts[:header_params] || {}
|
|
@@ -98,6 +101,7 @@ module Late
|
|
|
98
101
|
# @param account_id [String]
|
|
99
102
|
# @param name [String] The resource name of the place action link (e.g. locations/123/placeActionLinks/456)
|
|
100
103
|
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
101
105
|
# @return [DeleteGoogleBusinessPlaceAction200Response]
|
|
102
106
|
def delete_google_business_place_action(account_id, name, opts = {})
|
|
103
107
|
data, _status_code, _headers = delete_google_business_place_action_with_http_info(account_id, name, opts)
|
|
@@ -109,6 +113,7 @@ module Late
|
|
|
109
113
|
# @param account_id [String]
|
|
110
114
|
# @param name [String] The resource name of the place action link (e.g. locations/123/placeActionLinks/456)
|
|
111
115
|
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [String] :location_id Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
112
117
|
# @return [Array<(DeleteGoogleBusinessPlaceAction200Response, Integer, Hash)>] DeleteGoogleBusinessPlaceAction200Response data, response status code and response headers
|
|
113
118
|
def delete_google_business_place_action_with_http_info(account_id, name, opts = {})
|
|
114
119
|
if @api_client.config.debugging
|
|
@@ -128,6 +133,7 @@ module Late
|
|
|
128
133
|
# query parameters
|
|
129
134
|
query_params = opts[:query_params] || {}
|
|
130
135
|
query_params[:'name'] = name
|
|
136
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
131
137
|
|
|
132
138
|
# header parameters
|
|
133
139
|
header_params = opts[:header_params] || {}
|
|
@@ -167,6 +173,7 @@ module Late
|
|
|
167
173
|
# Lists place action links for a Google Business Profile location. Place actions are the booking, ordering, and reservation buttons that appear on your listing.
|
|
168
174
|
# @param account_id [String]
|
|
169
175
|
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
170
177
|
# @option opts [Integer] :page_size (default to 100)
|
|
171
178
|
# @option opts [String] :page_token
|
|
172
179
|
# @return [ListGoogleBusinessPlaceActions200Response]
|
|
@@ -179,6 +186,7 @@ module Late
|
|
|
179
186
|
# Lists place action links for a Google Business Profile location. Place actions are the booking, ordering, and reservation buttons that appear on your listing.
|
|
180
187
|
# @param account_id [String]
|
|
181
188
|
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
182
190
|
# @option opts [Integer] :page_size (default to 100)
|
|
183
191
|
# @option opts [String] :page_token
|
|
184
192
|
# @return [Array<(ListGoogleBusinessPlaceActions200Response, Integer, Hash)>] ListGoogleBusinessPlaceActions200Response data, response status code and response headers
|
|
@@ -199,6 +207,7 @@ module Late
|
|
|
199
207
|
|
|
200
208
|
# query parameters
|
|
201
209
|
query_params = opts[:query_params] || {}
|
|
210
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
202
211
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
203
212
|
query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
204
213
|
|
|
@@ -23,6 +23,7 @@ module Late
|
|
|
23
23
|
# Returns reviews for a GBP account including ratings, comments, and owner replies. Use nextPageToken for pagination.
|
|
24
24
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
26
27
|
# @option opts [Integer] :page_size Number of reviews to fetch per page (max 50) (default to 50)
|
|
27
28
|
# @option opts [String] :page_token Pagination token from previous response
|
|
28
29
|
# @return [GetGoogleBusinessReviews200Response]
|
|
@@ -35,6 +36,7 @@ module Late
|
|
|
35
36
|
# Returns reviews for a GBP account including ratings, comments, and owner replies. Use nextPageToken for pagination.
|
|
36
37
|
# @param account_id [String] The Late account ID (from /v1/accounts)
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :location_id Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
|
|
38
40
|
# @option opts [Integer] :page_size Number of reviews to fetch per page (max 50) (default to 50)
|
|
39
41
|
# @option opts [String] :page_token Pagination token from previous response
|
|
40
42
|
# @return [Array<(GetGoogleBusinessReviews200Response, Integer, Hash)>] GetGoogleBusinessReviews200Response data, response status code and response headers
|
|
@@ -59,6 +61,7 @@ module Late
|
|
|
59
61
|
|
|
60
62
|
# query parameters
|
|
61
63
|
query_params = opts[:query_params] || {}
|
|
64
|
+
query_params[:'locationId'] = opts[:'location_id'] if !opts[:'location_id'].nil?
|
|
62
65
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
63
66
|
query_params[:'pageToken'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
64
67
|
|