late-sdk 0.0.44 → 0.0.45
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 +0 -11
- data/docs/WhatsAppPhoneNumbersApi.md +0 -294
- data/lib/late-sdk/api/whats_app_phone_numbers_api.rb +0 -281
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +0 -7
- data/openapi.yaml +0 -192
- data/spec/api/whats_app_phone_numbers_api_spec.rb +0 -53
- metadata +1 -29
- data/docs/GetPreverifiedWhatsAppNumbers200Response.md +0 -20
- data/docs/GetPreverifiedWhatsAppNumbers200ResponseNumbersInner.md +0 -26
- data/docs/RequestWhatsAppVerificationCode200Response.md +0 -20
- data/docs/RequestWhatsAppVerificationCodeRequest.md +0 -18
- data/docs/SearchAvailableWhatsAppNumbers200Response.md +0 -18
- data/docs/VerifyWhatsAppPhoneNumber200Response.md +0 -22
- data/docs/VerifyWhatsAppPhoneNumberRequest.md +0 -18
- data/lib/late-sdk/models/get_preverified_whats_app_numbers200_response.rb +0 -161
- data/lib/late-sdk/models/get_preverified_whats_app_numbers200_response_numbers_inner.rb +0 -183
- data/lib/late-sdk/models/request_whats_app_verification_code200_response.rb +0 -190
- data/lib/late-sdk/models/request_whats_app_verification_code_request.rb +0 -184
- data/lib/late-sdk/models/search_available_whats_app_numbers200_response.rb +0 -149
- data/lib/late-sdk/models/verify_whats_app_phone_number200_response.rb +0 -165
- data/lib/late-sdk/models/verify_whats_app_phone_number_request.rb +0 -165
- data/spec/models/get_preverified_whats_app_numbers200_response_numbers_inner_spec.rb +0 -60
- data/spec/models/get_preverified_whats_app_numbers200_response_spec.rb +0 -42
- data/spec/models/request_whats_app_verification_code200_response_spec.rb +0 -46
- data/spec/models/request_whats_app_verification_code_request_spec.rb +0 -40
- data/spec/models/search_available_whats_app_numbers200_response_spec.rb +0 -36
- data/spec/models/verify_whats_app_phone_number200_response_spec.rb +0 -48
- data/spec/models/verify_whats_app_phone_number_request_spec.rb +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a73713da2a56fa7809cec07081413b397c4b0ddc5f7531c1f0f12e8d1c8b3cde
|
|
4
|
+
data.tar.gz: 9f5d2c6632153e44a93d35d33f6ad88c7bc5ff901098b775302c6da21cf22b63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b14e4cf15dadaa8d0498d4b667ad8d37bedfaeec542f8a496624d665a445787aa43251924130e4d407fad9935344ac128fd55130239b68d10afa465258ee9ca9
|
|
7
|
+
data.tar.gz: 4c748f26100ba12168544d2d3ed654e1f0c77048eff70bfdab56640bb9b45191c5a415c1c991ea7fdf99dc5ee204cc5a4a01e68ceac0bfd7f4ef75f0c788607b
|
data/README.md
CHANGED
|
@@ -234,14 +234,10 @@ Class | Method | HTTP request | Description
|
|
|
234
234
|
*Late::WhatsAppApi* | [**update_whats_app_business_profile**](docs/WhatsAppApi.md#update_whats_app_business_profile) | **POST** /v1/whatsapp/business-profile | Update business profile
|
|
235
235
|
*Late::WhatsAppApi* | [**update_whats_app_contact**](docs/WhatsAppApi.md#update_whats_app_contact) | **PUT** /v1/whatsapp/contacts/{contactId} | Update contact
|
|
236
236
|
*Late::WhatsAppApi* | [**update_whats_app_template**](docs/WhatsAppApi.md#update_whats_app_template) | **PATCH** /v1/whatsapp/templates/{templateName} | Update template
|
|
237
|
-
*Late::WhatsAppPhoneNumbersApi* | [**get_preverified_whats_app_numbers**](docs/WhatsAppPhoneNumbersApi.md#get_preverified_whats_app_numbers) | **GET** /v1/whatsapp/phone-numbers/preverified | Get pre-verified numbers
|
|
238
237
|
*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
238
|
*Late::WhatsAppPhoneNumbersApi* | [**get_whats_app_phone_numbers**](docs/WhatsAppPhoneNumbersApi.md#get_whats_app_phone_numbers) | **GET** /v1/whatsapp/phone-numbers | List phone numbers
|
|
240
239
|
*Late::WhatsAppPhoneNumbersApi* | [**purchase_whats_app_phone_number**](docs/WhatsAppPhoneNumbersApi.md#purchase_whats_app_phone_number) | **POST** /v1/whatsapp/phone-numbers/purchase | Purchase phone number
|
|
241
240
|
*Late::WhatsAppPhoneNumbersApi* | [**release_whats_app_phone_number**](docs/WhatsAppPhoneNumbersApi.md#release_whats_app_phone_number) | **DELETE** /v1/whatsapp/phone-numbers/{phoneNumberId} | Release phone number
|
|
242
|
-
*Late::WhatsAppPhoneNumbersApi* | [**request_whats_app_verification_code**](docs/WhatsAppPhoneNumbersApi.md#request_whats_app_verification_code) | **POST** /v1/whatsapp/phone-numbers/{phoneNumberId}/request-code | Request OTP
|
|
243
|
-
*Late::WhatsAppPhoneNumbersApi* | [**search_available_whats_app_numbers**](docs/WhatsAppPhoneNumbersApi.md#search_available_whats_app_numbers) | **GET** /v1/whatsapp/phone-numbers/available | Search available numbers
|
|
244
|
-
*Late::WhatsAppPhoneNumbersApi* | [**verify_whats_app_phone_number**](docs/WhatsAppPhoneNumbersApi.md#verify_whats_app_phone_number) | **POST** /v1/whatsapp/phone-numbers/{phoneNumberId}/verify | Verify OTP
|
|
245
241
|
|
|
246
242
|
|
|
247
243
|
## Documentation for Models
|
|
@@ -430,8 +426,6 @@ Class | Method | HTTP request | Description
|
|
|
430
426
|
- [Late::GetPostTimeline404Response](docs/GetPostTimeline404Response.md)
|
|
431
427
|
- [Late::GetPostingFrequency200Response](docs/GetPostingFrequency200Response.md)
|
|
432
428
|
- [Late::GetPostingFrequency200ResponseFrequencyInner](docs/GetPostingFrequency200ResponseFrequencyInner.md)
|
|
433
|
-
- [Late::GetPreverifiedWhatsAppNumbers200Response](docs/GetPreverifiedWhatsAppNumbers200Response.md)
|
|
434
|
-
- [Late::GetPreverifiedWhatsAppNumbers200ResponseNumbersInner](docs/GetPreverifiedWhatsAppNumbers200ResponseNumbersInner.md)
|
|
435
429
|
- [Late::GetProfile200Response](docs/GetProfile200Response.md)
|
|
436
430
|
- [Late::GetRedditFeed200Response](docs/GetRedditFeed200Response.md)
|
|
437
431
|
- [Late::GetRedditFlairs200Response](docs/GetRedditFlairs200Response.md)
|
|
@@ -605,12 +599,9 @@ Class | Method | HTTP request | Description
|
|
|
605
599
|
- [Late::ReplyToInboxReview200Response](docs/ReplyToInboxReview200Response.md)
|
|
606
600
|
- [Late::ReplyToInboxReview200ResponseReply](docs/ReplyToInboxReview200ResponseReply.md)
|
|
607
601
|
- [Late::ReplyToInboxReviewRequest](docs/ReplyToInboxReviewRequest.md)
|
|
608
|
-
- [Late::RequestWhatsAppVerificationCode200Response](docs/RequestWhatsAppVerificationCode200Response.md)
|
|
609
|
-
- [Late::RequestWhatsAppVerificationCodeRequest](docs/RequestWhatsAppVerificationCodeRequest.md)
|
|
610
602
|
- [Late::ScheduleWhatsAppBroadcast200Response](docs/ScheduleWhatsAppBroadcast200Response.md)
|
|
611
603
|
- [Late::ScheduleWhatsAppBroadcast200ResponseBroadcast](docs/ScheduleWhatsAppBroadcast200ResponseBroadcast.md)
|
|
612
604
|
- [Late::ScheduleWhatsAppBroadcastRequest](docs/ScheduleWhatsAppBroadcastRequest.md)
|
|
613
|
-
- [Late::SearchAvailableWhatsAppNumbers200Response](docs/SearchAvailableWhatsAppNumbers200Response.md)
|
|
614
605
|
- [Late::SearchReddit200Response](docs/SearchReddit200Response.md)
|
|
615
606
|
- [Late::SearchReddit200ResponsePostsInner](docs/SearchReddit200ResponsePostsInner.md)
|
|
616
607
|
- [Late::SelectFacebookPage200Response](docs/SelectFacebookPage200Response.md)
|
|
@@ -739,8 +730,6 @@ Class | Method | HTTP request | Description
|
|
|
739
730
|
- [Late::ValidateSubreddit200ResponseOneOf](docs/ValidateSubreddit200ResponseOneOf.md)
|
|
740
731
|
- [Late::ValidateSubreddit200ResponseOneOf1](docs/ValidateSubreddit200ResponseOneOf1.md)
|
|
741
732
|
- [Late::ValidateSubreddit200ResponseOneOfSubreddit](docs/ValidateSubreddit200ResponseOneOfSubreddit.md)
|
|
742
|
-
- [Late::VerifyWhatsAppPhoneNumber200Response](docs/VerifyWhatsAppPhoneNumber200Response.md)
|
|
743
|
-
- [Late::VerifyWhatsAppPhoneNumberRequest](docs/VerifyWhatsAppPhoneNumberRequest.md)
|
|
744
733
|
- [Late::Webhook](docs/Webhook.md)
|
|
745
734
|
- [Late::WebhookLog](docs/WebhookLog.md)
|
|
746
735
|
- [Late::WebhookPayloadAccountConnected](docs/WebhookPayloadAccountConnected.md)
|
|
@@ -4,83 +4,10 @@ All URIs are relative to *https://getlate.dev/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_preverified_whats_app_numbers**](WhatsAppPhoneNumbersApi.md#get_preverified_whats_app_numbers) | **GET** /v1/whatsapp/phone-numbers/preverified | Get pre-verified numbers |
|
|
8
7
|
| [**get_whats_app_phone_number**](WhatsAppPhoneNumbersApi.md#get_whats_app_phone_number) | **GET** /v1/whatsapp/phone-numbers/{phoneNumberId} | Get phone number |
|
|
9
8
|
| [**get_whats_app_phone_numbers**](WhatsAppPhoneNumbersApi.md#get_whats_app_phone_numbers) | **GET** /v1/whatsapp/phone-numbers | List phone numbers |
|
|
10
9
|
| [**purchase_whats_app_phone_number**](WhatsAppPhoneNumbersApi.md#purchase_whats_app_phone_number) | **POST** /v1/whatsapp/phone-numbers/purchase | Purchase phone number |
|
|
11
10
|
| [**release_whats_app_phone_number**](WhatsAppPhoneNumbersApi.md#release_whats_app_phone_number) | **DELETE** /v1/whatsapp/phone-numbers/{phoneNumberId} | Release phone number |
|
|
12
|
-
| [**request_whats_app_verification_code**](WhatsAppPhoneNumbersApi.md#request_whats_app_verification_code) | **POST** /v1/whatsapp/phone-numbers/{phoneNumberId}/request-code | Request OTP |
|
|
13
|
-
| [**search_available_whats_app_numbers**](WhatsAppPhoneNumbersApi.md#search_available_whats_app_numbers) | **GET** /v1/whatsapp/phone-numbers/available | Search available numbers |
|
|
14
|
-
| [**verify_whats_app_phone_number**](WhatsAppPhoneNumbersApi.md#verify_whats_app_phone_number) | **POST** /v1/whatsapp/phone-numbers/{phoneNumberId}/verify | Verify OTP |
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## get_preverified_whats_app_numbers
|
|
18
|
-
|
|
19
|
-
> <GetPreverifiedWhatsAppNumbers200Response> get_preverified_whats_app_numbers(profile_id)
|
|
20
|
-
|
|
21
|
-
Get pre-verified numbers
|
|
22
|
-
|
|
23
|
-
Returns the user's pre-verified phone number IDs that are ready for OTP-free Embedded Signup. Only returns numbers with verified Meta status and non-expired verification.
|
|
24
|
-
|
|
25
|
-
### Examples
|
|
26
|
-
|
|
27
|
-
```ruby
|
|
28
|
-
require 'time'
|
|
29
|
-
require 'late-sdk'
|
|
30
|
-
# setup authorization
|
|
31
|
-
Late.configure do |config|
|
|
32
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
|
33
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
api_instance = Late::WhatsAppPhoneNumbersApi.new
|
|
37
|
-
profile_id = 'profile_id_example' # String | Profile ID to filter by
|
|
38
|
-
|
|
39
|
-
begin
|
|
40
|
-
# Get pre-verified numbers
|
|
41
|
-
result = api_instance.get_preverified_whats_app_numbers(profile_id)
|
|
42
|
-
p result
|
|
43
|
-
rescue Late::ApiError => e
|
|
44
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->get_preverified_whats_app_numbers: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
#### Using the get_preverified_whats_app_numbers_with_http_info variant
|
|
49
|
-
|
|
50
|
-
This returns an Array which contains the response data, status code and headers.
|
|
51
|
-
|
|
52
|
-
> <Array(<GetPreverifiedWhatsAppNumbers200Response>, Integer, Hash)> get_preverified_whats_app_numbers_with_http_info(profile_id)
|
|
53
|
-
|
|
54
|
-
```ruby
|
|
55
|
-
begin
|
|
56
|
-
# Get pre-verified numbers
|
|
57
|
-
data, status_code, headers = api_instance.get_preverified_whats_app_numbers_with_http_info(profile_id)
|
|
58
|
-
p status_code # => 2xx
|
|
59
|
-
p headers # => { ... }
|
|
60
|
-
p data # => <GetPreverifiedWhatsAppNumbers200Response>
|
|
61
|
-
rescue Late::ApiError => e
|
|
62
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->get_preverified_whats_app_numbers_with_http_info: #{e}"
|
|
63
|
-
end
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Parameters
|
|
67
|
-
|
|
68
|
-
| Name | Type | Description | Notes |
|
|
69
|
-
| ---- | ---- | ----------- | ----- |
|
|
70
|
-
| **profile_id** | **String** | Profile ID to filter by | |
|
|
71
|
-
|
|
72
|
-
### Return type
|
|
73
|
-
|
|
74
|
-
[**GetPreverifiedWhatsAppNumbers200Response**](GetPreverifiedWhatsAppNumbers200Response.md)
|
|
75
|
-
|
|
76
|
-
### Authorization
|
|
77
|
-
|
|
78
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
79
|
-
|
|
80
|
-
### HTTP request headers
|
|
81
|
-
|
|
82
|
-
- **Content-Type**: Not defined
|
|
83
|
-
- **Accept**: application/json
|
|
84
11
|
|
|
85
12
|
|
|
86
13
|
## get_whats_app_phone_number
|
|
@@ -362,224 +289,3 @@ end
|
|
|
362
289
|
- **Content-Type**: Not defined
|
|
363
290
|
- **Accept**: application/json
|
|
364
291
|
|
|
365
|
-
|
|
366
|
-
## request_whats_app_verification_code
|
|
367
|
-
|
|
368
|
-
> <RequestWhatsAppVerificationCode200Response> request_whats_app_verification_code(phone_number_id, opts)
|
|
369
|
-
|
|
370
|
-
Request OTP
|
|
371
|
-
|
|
372
|
-
Request a new OTP verification code from Meta for a pre-verified phone number. Useful when the initial SMS did not arrive or when re-verifying before the 90-day expiry.
|
|
373
|
-
|
|
374
|
-
### Examples
|
|
375
|
-
|
|
376
|
-
```ruby
|
|
377
|
-
require 'time'
|
|
378
|
-
require 'late-sdk'
|
|
379
|
-
# setup authorization
|
|
380
|
-
Late.configure do |config|
|
|
381
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
|
382
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
api_instance = Late::WhatsAppPhoneNumbersApi.new
|
|
386
|
-
phone_number_id = 'phone_number_id_example' # String | Phone number record ID
|
|
387
|
-
opts = {
|
|
388
|
-
request_whats_app_verification_code_request: Late::RequestWhatsAppVerificationCodeRequest.new # RequestWhatsAppVerificationCodeRequest |
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
begin
|
|
392
|
-
# Request OTP
|
|
393
|
-
result = api_instance.request_whats_app_verification_code(phone_number_id, opts)
|
|
394
|
-
p result
|
|
395
|
-
rescue Late::ApiError => e
|
|
396
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->request_whats_app_verification_code: #{e}"
|
|
397
|
-
end
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
#### Using the request_whats_app_verification_code_with_http_info variant
|
|
401
|
-
|
|
402
|
-
This returns an Array which contains the response data, status code and headers.
|
|
403
|
-
|
|
404
|
-
> <Array(<RequestWhatsAppVerificationCode200Response>, Integer, Hash)> request_whats_app_verification_code_with_http_info(phone_number_id, opts)
|
|
405
|
-
|
|
406
|
-
```ruby
|
|
407
|
-
begin
|
|
408
|
-
# Request OTP
|
|
409
|
-
data, status_code, headers = api_instance.request_whats_app_verification_code_with_http_info(phone_number_id, opts)
|
|
410
|
-
p status_code # => 2xx
|
|
411
|
-
p headers # => { ... }
|
|
412
|
-
p data # => <RequestWhatsAppVerificationCode200Response>
|
|
413
|
-
rescue Late::ApiError => e
|
|
414
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->request_whats_app_verification_code_with_http_info: #{e}"
|
|
415
|
-
end
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
### Parameters
|
|
419
|
-
|
|
420
|
-
| Name | Type | Description | Notes |
|
|
421
|
-
| ---- | ---- | ----------- | ----- |
|
|
422
|
-
| **phone_number_id** | **String** | Phone number record ID | |
|
|
423
|
-
| **request_whats_app_verification_code_request** | [**RequestWhatsAppVerificationCodeRequest**](RequestWhatsAppVerificationCodeRequest.md) | | [optional] |
|
|
424
|
-
|
|
425
|
-
### Return type
|
|
426
|
-
|
|
427
|
-
[**RequestWhatsAppVerificationCode200Response**](RequestWhatsAppVerificationCode200Response.md)
|
|
428
|
-
|
|
429
|
-
### Authorization
|
|
430
|
-
|
|
431
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
432
|
-
|
|
433
|
-
### HTTP request headers
|
|
434
|
-
|
|
435
|
-
- **Content-Type**: application/json
|
|
436
|
-
- **Accept**: application/json
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
## search_available_whats_app_numbers
|
|
440
|
-
|
|
441
|
-
> <SearchAvailableWhatsAppNumbers200Response> search_available_whats_app_numbers(opts)
|
|
442
|
-
|
|
443
|
-
Search available numbers
|
|
444
|
-
|
|
445
|
-
Search for available US phone numbers that can be purchased for WhatsApp Business. Requires a paid plan. Numbers are sourced from Telnyx.
|
|
446
|
-
|
|
447
|
-
### Examples
|
|
448
|
-
|
|
449
|
-
```ruby
|
|
450
|
-
require 'time'
|
|
451
|
-
require 'late-sdk'
|
|
452
|
-
# setup authorization
|
|
453
|
-
Late.configure do |config|
|
|
454
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
|
455
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
456
|
-
end
|
|
457
|
-
|
|
458
|
-
api_instance = Late::WhatsAppPhoneNumbersApi.new
|
|
459
|
-
opts = {
|
|
460
|
-
prefix: 'prefix_example', # String | Area code to search (e.g., \"212\" for New York)
|
|
461
|
-
locality: 'locality_example', # String | City name (e.g., \"New York\")
|
|
462
|
-
contains: 'contains_example', # String | Pattern to match within the phone number
|
|
463
|
-
limit: 56 # Integer | Maximum results (default 20, max 100)
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
begin
|
|
467
|
-
# Search available numbers
|
|
468
|
-
result = api_instance.search_available_whats_app_numbers(opts)
|
|
469
|
-
p result
|
|
470
|
-
rescue Late::ApiError => e
|
|
471
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->search_available_whats_app_numbers: #{e}"
|
|
472
|
-
end
|
|
473
|
-
```
|
|
474
|
-
|
|
475
|
-
#### Using the search_available_whats_app_numbers_with_http_info variant
|
|
476
|
-
|
|
477
|
-
This returns an Array which contains the response data, status code and headers.
|
|
478
|
-
|
|
479
|
-
> <Array(<SearchAvailableWhatsAppNumbers200Response>, Integer, Hash)> search_available_whats_app_numbers_with_http_info(opts)
|
|
480
|
-
|
|
481
|
-
```ruby
|
|
482
|
-
begin
|
|
483
|
-
# Search available numbers
|
|
484
|
-
data, status_code, headers = api_instance.search_available_whats_app_numbers_with_http_info(opts)
|
|
485
|
-
p status_code # => 2xx
|
|
486
|
-
p headers # => { ... }
|
|
487
|
-
p data # => <SearchAvailableWhatsAppNumbers200Response>
|
|
488
|
-
rescue Late::ApiError => e
|
|
489
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->search_available_whats_app_numbers_with_http_info: #{e}"
|
|
490
|
-
end
|
|
491
|
-
```
|
|
492
|
-
|
|
493
|
-
### Parameters
|
|
494
|
-
|
|
495
|
-
| Name | Type | Description | Notes |
|
|
496
|
-
| ---- | ---- | ----------- | ----- |
|
|
497
|
-
| **prefix** | **String** | Area code to search (e.g., \"212\" for New York) | [optional] |
|
|
498
|
-
| **locality** | **String** | City name (e.g., \"New York\") | [optional] |
|
|
499
|
-
| **contains** | **String** | Pattern to match within the phone number | [optional] |
|
|
500
|
-
| **limit** | **Integer** | Maximum results (default 20, max 100) | [optional][default to 20] |
|
|
501
|
-
|
|
502
|
-
### Return type
|
|
503
|
-
|
|
504
|
-
[**SearchAvailableWhatsAppNumbers200Response**](SearchAvailableWhatsAppNumbers200Response.md)
|
|
505
|
-
|
|
506
|
-
### Authorization
|
|
507
|
-
|
|
508
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
509
|
-
|
|
510
|
-
### HTTP request headers
|
|
511
|
-
|
|
512
|
-
- **Content-Type**: Not defined
|
|
513
|
-
- **Accept**: application/json
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
## verify_whats_app_phone_number
|
|
517
|
-
|
|
518
|
-
> <VerifyWhatsAppPhoneNumber200Response> verify_whats_app_phone_number(phone_number_id, verify_whats_app_phone_number_request)
|
|
519
|
-
|
|
520
|
-
Verify OTP
|
|
521
|
-
|
|
522
|
-
Manually verify a phone number by entering the OTP code received via SMS or voice call. This is a fallback for when the auto-verification webhook does not capture the code. Verification is valid for 90 days.
|
|
523
|
-
|
|
524
|
-
### Examples
|
|
525
|
-
|
|
526
|
-
```ruby
|
|
527
|
-
require 'time'
|
|
528
|
-
require 'late-sdk'
|
|
529
|
-
# setup authorization
|
|
530
|
-
Late.configure do |config|
|
|
531
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
|
532
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
api_instance = Late::WhatsAppPhoneNumbersApi.new
|
|
536
|
-
phone_number_id = 'phone_number_id_example' # String | Phone number record ID
|
|
537
|
-
verify_whats_app_phone_number_request = Late::VerifyWhatsAppPhoneNumberRequest.new({code: 'code_example'}) # VerifyWhatsAppPhoneNumberRequest |
|
|
538
|
-
|
|
539
|
-
begin
|
|
540
|
-
# Verify OTP
|
|
541
|
-
result = api_instance.verify_whats_app_phone_number(phone_number_id, verify_whats_app_phone_number_request)
|
|
542
|
-
p result
|
|
543
|
-
rescue Late::ApiError => e
|
|
544
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->verify_whats_app_phone_number: #{e}"
|
|
545
|
-
end
|
|
546
|
-
```
|
|
547
|
-
|
|
548
|
-
#### Using the verify_whats_app_phone_number_with_http_info variant
|
|
549
|
-
|
|
550
|
-
This returns an Array which contains the response data, status code and headers.
|
|
551
|
-
|
|
552
|
-
> <Array(<VerifyWhatsAppPhoneNumber200Response>, Integer, Hash)> verify_whats_app_phone_number_with_http_info(phone_number_id, verify_whats_app_phone_number_request)
|
|
553
|
-
|
|
554
|
-
```ruby
|
|
555
|
-
begin
|
|
556
|
-
# Verify OTP
|
|
557
|
-
data, status_code, headers = api_instance.verify_whats_app_phone_number_with_http_info(phone_number_id, verify_whats_app_phone_number_request)
|
|
558
|
-
p status_code # => 2xx
|
|
559
|
-
p headers # => { ... }
|
|
560
|
-
p data # => <VerifyWhatsAppPhoneNumber200Response>
|
|
561
|
-
rescue Late::ApiError => e
|
|
562
|
-
puts "Error when calling WhatsAppPhoneNumbersApi->verify_whats_app_phone_number_with_http_info: #{e}"
|
|
563
|
-
end
|
|
564
|
-
```
|
|
565
|
-
|
|
566
|
-
### Parameters
|
|
567
|
-
|
|
568
|
-
| Name | Type | Description | Notes |
|
|
569
|
-
| ---- | ---- | ----------- | ----- |
|
|
570
|
-
| **phone_number_id** | **String** | Phone number record ID | |
|
|
571
|
-
| **verify_whats_app_phone_number_request** | [**VerifyWhatsAppPhoneNumberRequest**](VerifyWhatsAppPhoneNumberRequest.md) | | |
|
|
572
|
-
|
|
573
|
-
### Return type
|
|
574
|
-
|
|
575
|
-
[**VerifyWhatsAppPhoneNumber200Response**](VerifyWhatsAppPhoneNumber200Response.md)
|
|
576
|
-
|
|
577
|
-
### Authorization
|
|
578
|
-
|
|
579
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
580
|
-
|
|
581
|
-
### HTTP request headers
|
|
582
|
-
|
|
583
|
-
- **Content-Type**: application/json
|
|
584
|
-
- **Accept**: application/json
|
|
585
|
-
|
|
@@ -19,70 +19,6 @@ module Late
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Get pre-verified numbers
|
|
23
|
-
# Returns the user's pre-verified phone number IDs that are ready for OTP-free Embedded Signup. Only returns numbers with verified Meta status and non-expired verification.
|
|
24
|
-
# @param profile_id [String] Profile ID to filter by
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [GetPreverifiedWhatsAppNumbers200Response]
|
|
27
|
-
def get_preverified_whats_app_numbers(profile_id, opts = {})
|
|
28
|
-
data, _status_code, _headers = get_preverified_whats_app_numbers_with_http_info(profile_id, opts)
|
|
29
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Get pre-verified numbers
|
|
33
|
-
# Returns the user's pre-verified phone number IDs that are ready for OTP-free Embedded Signup. Only returns numbers with verified Meta status and non-expired verification.
|
|
34
|
-
# @param profile_id [String] Profile ID to filter by
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(GetPreverifiedWhatsAppNumbers200Response, Integer, Hash)>] GetPreverifiedWhatsAppNumbers200Response data, response status code and response headers
|
|
37
|
-
def get_preverified_whats_app_numbers_with_http_info(profile_id, opts = {})
|
|
38
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: WhatsAppPhoneNumbersApi.get_preverified_whats_app_numbers ...'
|
|
40
|
-
end
|
|
41
|
-
# verify the required parameter 'profile_id' is set
|
|
42
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling WhatsAppPhoneNumbersApi.get_preverified_whats_app_numbers"
|
|
44
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/v1/whatsapp/phone-numbers/preverified'
|
|
47
|
-
|
|
48
|
-
# query parameters
|
|
49
|
-
query_params = opts[:query_params] || {}
|
|
50
|
-
query_params[:'profileId'] = profile_id
|
|
51
|
-
|
|
52
|
-
# header parameters
|
|
53
|
-
header_params = opts[:header_params] || {}
|
|
54
|
-
# HTTP header 'Accept' (if needed)
|
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
56
|
-
|
|
57
|
-
# form parameters
|
|
58
|
-
form_params = opts[:form_params] || {}
|
|
59
|
-
|
|
60
|
-
# http body (model)
|
|
61
|
-
post_body = opts[:debug_body]
|
|
62
|
-
|
|
63
|
-
# return_type
|
|
64
|
-
return_type = opts[:debug_return_type] || 'GetPreverifiedWhatsAppNumbers200Response'
|
|
65
|
-
|
|
66
|
-
# auth_names
|
|
67
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
68
|
-
|
|
69
|
-
new_options = opts.merge(
|
|
70
|
-
:operation => :"WhatsAppPhoneNumbersApi.get_preverified_whats_app_numbers",
|
|
71
|
-
:header_params => header_params,
|
|
72
|
-
:query_params => query_params,
|
|
73
|
-
:form_params => form_params,
|
|
74
|
-
:body => post_body,
|
|
75
|
-
:auth_names => auth_names,
|
|
76
|
-
:return_type => return_type
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
-
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: WhatsAppPhoneNumbersApi#get_preverified_whats_app_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
|
|
86
22
|
# Get phone number
|
|
87
23
|
# Retrieve the current status of a purchased phone number. Used to poll for Meta pre-verification completion after purchase.
|
|
88
24
|
# @param phone_number_id [String] Phone number record ID
|
|
@@ -343,222 +279,5 @@ module Late
|
|
|
343
279
|
end
|
|
344
280
|
return data, status_code, headers
|
|
345
281
|
end
|
|
346
|
-
|
|
347
|
-
# Request OTP
|
|
348
|
-
# Request a new OTP verification code from Meta for a pre-verified phone number. Useful when the initial SMS did not arrive or when re-verifying before the 90-day expiry.
|
|
349
|
-
# @param phone_number_id [String] Phone number record ID
|
|
350
|
-
# @param [Hash] opts the optional parameters
|
|
351
|
-
# @option opts [RequestWhatsAppVerificationCodeRequest] :request_whats_app_verification_code_request
|
|
352
|
-
# @return [RequestWhatsAppVerificationCode200Response]
|
|
353
|
-
def request_whats_app_verification_code(phone_number_id, opts = {})
|
|
354
|
-
data, _status_code, _headers = request_whats_app_verification_code_with_http_info(phone_number_id, opts)
|
|
355
|
-
data
|
|
356
|
-
end
|
|
357
|
-
|
|
358
|
-
# Request OTP
|
|
359
|
-
# Request a new OTP verification code from Meta for a pre-verified phone number. Useful when the initial SMS did not arrive or when re-verifying before the 90-day expiry.
|
|
360
|
-
# @param phone_number_id [String] Phone number record ID
|
|
361
|
-
# @param [Hash] opts the optional parameters
|
|
362
|
-
# @option opts [RequestWhatsAppVerificationCodeRequest] :request_whats_app_verification_code_request
|
|
363
|
-
# @return [Array<(RequestWhatsAppVerificationCode200Response, Integer, Hash)>] RequestWhatsAppVerificationCode200Response data, response status code and response headers
|
|
364
|
-
def request_whats_app_verification_code_with_http_info(phone_number_id, opts = {})
|
|
365
|
-
if @api_client.config.debugging
|
|
366
|
-
@api_client.config.logger.debug 'Calling API: WhatsAppPhoneNumbersApi.request_whats_app_verification_code ...'
|
|
367
|
-
end
|
|
368
|
-
# verify the required parameter 'phone_number_id' is set
|
|
369
|
-
if @api_client.config.client_side_validation && phone_number_id.nil?
|
|
370
|
-
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling WhatsAppPhoneNumbersApi.request_whats_app_verification_code"
|
|
371
|
-
end
|
|
372
|
-
# resource path
|
|
373
|
-
local_var_path = '/v1/whatsapp/phone-numbers/{phoneNumberId}/request-code'.sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
|
374
|
-
|
|
375
|
-
# query parameters
|
|
376
|
-
query_params = opts[:query_params] || {}
|
|
377
|
-
|
|
378
|
-
# header parameters
|
|
379
|
-
header_params = opts[:header_params] || {}
|
|
380
|
-
# HTTP header 'Accept' (if needed)
|
|
381
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
382
|
-
# HTTP header 'Content-Type'
|
|
383
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
384
|
-
if !content_type.nil?
|
|
385
|
-
header_params['Content-Type'] = content_type
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
# form parameters
|
|
389
|
-
form_params = opts[:form_params] || {}
|
|
390
|
-
|
|
391
|
-
# http body (model)
|
|
392
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_whats_app_verification_code_request'])
|
|
393
|
-
|
|
394
|
-
# return_type
|
|
395
|
-
return_type = opts[:debug_return_type] || 'RequestWhatsAppVerificationCode200Response'
|
|
396
|
-
|
|
397
|
-
# auth_names
|
|
398
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
399
|
-
|
|
400
|
-
new_options = opts.merge(
|
|
401
|
-
:operation => :"WhatsAppPhoneNumbersApi.request_whats_app_verification_code",
|
|
402
|
-
:header_params => header_params,
|
|
403
|
-
:query_params => query_params,
|
|
404
|
-
:form_params => form_params,
|
|
405
|
-
:body => post_body,
|
|
406
|
-
:auth_names => auth_names,
|
|
407
|
-
:return_type => return_type
|
|
408
|
-
)
|
|
409
|
-
|
|
410
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
411
|
-
if @api_client.config.debugging
|
|
412
|
-
@api_client.config.logger.debug "API called: WhatsAppPhoneNumbersApi#request_whats_app_verification_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
413
|
-
end
|
|
414
|
-
return data, status_code, headers
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
# Search available numbers
|
|
418
|
-
# Search for available US phone numbers that can be purchased for WhatsApp Business. Requires a paid plan. Numbers are sourced from Telnyx.
|
|
419
|
-
# @param [Hash] opts the optional parameters
|
|
420
|
-
# @option opts [String] :prefix Area code to search (e.g., \"212\" for New York)
|
|
421
|
-
# @option opts [String] :locality City name (e.g., \"New York\")
|
|
422
|
-
# @option opts [String] :contains Pattern to match within the phone number
|
|
423
|
-
# @option opts [Integer] :limit Maximum results (default 20, max 100) (default to 20)
|
|
424
|
-
# @return [SearchAvailableWhatsAppNumbers200Response]
|
|
425
|
-
def search_available_whats_app_numbers(opts = {})
|
|
426
|
-
data, _status_code, _headers = search_available_whats_app_numbers_with_http_info(opts)
|
|
427
|
-
data
|
|
428
|
-
end
|
|
429
|
-
|
|
430
|
-
# Search available numbers
|
|
431
|
-
# Search for available US phone numbers that can be purchased for WhatsApp Business. Requires a paid plan. Numbers are sourced from Telnyx.
|
|
432
|
-
# @param [Hash] opts the optional parameters
|
|
433
|
-
# @option opts [String] :prefix Area code to search (e.g., \"212\" for New York)
|
|
434
|
-
# @option opts [String] :locality City name (e.g., \"New York\")
|
|
435
|
-
# @option opts [String] :contains Pattern to match within the phone number
|
|
436
|
-
# @option opts [Integer] :limit Maximum results (default 20, max 100) (default to 20)
|
|
437
|
-
# @return [Array<(SearchAvailableWhatsAppNumbers200Response, Integer, Hash)>] SearchAvailableWhatsAppNumbers200Response data, response status code and response headers
|
|
438
|
-
def search_available_whats_app_numbers_with_http_info(opts = {})
|
|
439
|
-
if @api_client.config.debugging
|
|
440
|
-
@api_client.config.logger.debug 'Calling API: WhatsAppPhoneNumbersApi.search_available_whats_app_numbers ...'
|
|
441
|
-
end
|
|
442
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
443
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WhatsAppPhoneNumbersApi.search_available_whats_app_numbers, must be smaller than or equal to 100.'
|
|
444
|
-
end
|
|
445
|
-
|
|
446
|
-
# resource path
|
|
447
|
-
local_var_path = '/v1/whatsapp/phone-numbers/available'
|
|
448
|
-
|
|
449
|
-
# query parameters
|
|
450
|
-
query_params = opts[:query_params] || {}
|
|
451
|
-
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
|
|
452
|
-
query_params[:'locality'] = opts[:'locality'] if !opts[:'locality'].nil?
|
|
453
|
-
query_params[:'contains'] = opts[:'contains'] if !opts[:'contains'].nil?
|
|
454
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
455
|
-
|
|
456
|
-
# header parameters
|
|
457
|
-
header_params = opts[:header_params] || {}
|
|
458
|
-
# HTTP header 'Accept' (if needed)
|
|
459
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
460
|
-
|
|
461
|
-
# form parameters
|
|
462
|
-
form_params = opts[:form_params] || {}
|
|
463
|
-
|
|
464
|
-
# http body (model)
|
|
465
|
-
post_body = opts[:debug_body]
|
|
466
|
-
|
|
467
|
-
# return_type
|
|
468
|
-
return_type = opts[:debug_return_type] || 'SearchAvailableWhatsAppNumbers200Response'
|
|
469
|
-
|
|
470
|
-
# auth_names
|
|
471
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
472
|
-
|
|
473
|
-
new_options = opts.merge(
|
|
474
|
-
:operation => :"WhatsAppPhoneNumbersApi.search_available_whats_app_numbers",
|
|
475
|
-
:header_params => header_params,
|
|
476
|
-
:query_params => query_params,
|
|
477
|
-
:form_params => form_params,
|
|
478
|
-
:body => post_body,
|
|
479
|
-
:auth_names => auth_names,
|
|
480
|
-
:return_type => return_type
|
|
481
|
-
)
|
|
482
|
-
|
|
483
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
484
|
-
if @api_client.config.debugging
|
|
485
|
-
@api_client.config.logger.debug "API called: WhatsAppPhoneNumbersApi#search_available_whats_app_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
486
|
-
end
|
|
487
|
-
return data, status_code, headers
|
|
488
|
-
end
|
|
489
|
-
|
|
490
|
-
# Verify OTP
|
|
491
|
-
# Manually verify a phone number by entering the OTP code received via SMS or voice call. This is a fallback for when the auto-verification webhook does not capture the code. Verification is valid for 90 days.
|
|
492
|
-
# @param phone_number_id [String] Phone number record ID
|
|
493
|
-
# @param verify_whats_app_phone_number_request [VerifyWhatsAppPhoneNumberRequest]
|
|
494
|
-
# @param [Hash] opts the optional parameters
|
|
495
|
-
# @return [VerifyWhatsAppPhoneNumber200Response]
|
|
496
|
-
def verify_whats_app_phone_number(phone_number_id, verify_whats_app_phone_number_request, opts = {})
|
|
497
|
-
data, _status_code, _headers = verify_whats_app_phone_number_with_http_info(phone_number_id, verify_whats_app_phone_number_request, opts)
|
|
498
|
-
data
|
|
499
|
-
end
|
|
500
|
-
|
|
501
|
-
# Verify OTP
|
|
502
|
-
# Manually verify a phone number by entering the OTP code received via SMS or voice call. This is a fallback for when the auto-verification webhook does not capture the code. Verification is valid for 90 days.
|
|
503
|
-
# @param phone_number_id [String] Phone number record ID
|
|
504
|
-
# @param verify_whats_app_phone_number_request [VerifyWhatsAppPhoneNumberRequest]
|
|
505
|
-
# @param [Hash] opts the optional parameters
|
|
506
|
-
# @return [Array<(VerifyWhatsAppPhoneNumber200Response, Integer, Hash)>] VerifyWhatsAppPhoneNumber200Response data, response status code and response headers
|
|
507
|
-
def verify_whats_app_phone_number_with_http_info(phone_number_id, verify_whats_app_phone_number_request, opts = {})
|
|
508
|
-
if @api_client.config.debugging
|
|
509
|
-
@api_client.config.logger.debug 'Calling API: WhatsAppPhoneNumbersApi.verify_whats_app_phone_number ...'
|
|
510
|
-
end
|
|
511
|
-
# verify the required parameter 'phone_number_id' is set
|
|
512
|
-
if @api_client.config.client_side_validation && phone_number_id.nil?
|
|
513
|
-
fail ArgumentError, "Missing the required parameter 'phone_number_id' when calling WhatsAppPhoneNumbersApi.verify_whats_app_phone_number"
|
|
514
|
-
end
|
|
515
|
-
# verify the required parameter 'verify_whats_app_phone_number_request' is set
|
|
516
|
-
if @api_client.config.client_side_validation && verify_whats_app_phone_number_request.nil?
|
|
517
|
-
fail ArgumentError, "Missing the required parameter 'verify_whats_app_phone_number_request' when calling WhatsAppPhoneNumbersApi.verify_whats_app_phone_number"
|
|
518
|
-
end
|
|
519
|
-
# resource path
|
|
520
|
-
local_var_path = '/v1/whatsapp/phone-numbers/{phoneNumberId}/verify'.sub('{' + 'phoneNumberId' + '}', CGI.escape(phone_number_id.to_s))
|
|
521
|
-
|
|
522
|
-
# query parameters
|
|
523
|
-
query_params = opts[:query_params] || {}
|
|
524
|
-
|
|
525
|
-
# header parameters
|
|
526
|
-
header_params = opts[:header_params] || {}
|
|
527
|
-
# HTTP header 'Accept' (if needed)
|
|
528
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
529
|
-
# HTTP header 'Content-Type'
|
|
530
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
531
|
-
if !content_type.nil?
|
|
532
|
-
header_params['Content-Type'] = content_type
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
# form parameters
|
|
536
|
-
form_params = opts[:form_params] || {}
|
|
537
|
-
|
|
538
|
-
# http body (model)
|
|
539
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_whats_app_phone_number_request)
|
|
540
|
-
|
|
541
|
-
# return_type
|
|
542
|
-
return_type = opts[:debug_return_type] || 'VerifyWhatsAppPhoneNumber200Response'
|
|
543
|
-
|
|
544
|
-
# auth_names
|
|
545
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
546
|
-
|
|
547
|
-
new_options = opts.merge(
|
|
548
|
-
:operation => :"WhatsAppPhoneNumbersApi.verify_whats_app_phone_number",
|
|
549
|
-
:header_params => header_params,
|
|
550
|
-
:query_params => query_params,
|
|
551
|
-
:form_params => form_params,
|
|
552
|
-
:body => post_body,
|
|
553
|
-
:auth_names => auth_names,
|
|
554
|
-
:return_type => return_type
|
|
555
|
-
)
|
|
556
|
-
|
|
557
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
558
|
-
if @api_client.config.debugging
|
|
559
|
-
@api_client.config.logger.debug "API called: WhatsAppPhoneNumbersApi#verify_whats_app_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
560
|
-
end
|
|
561
|
-
return data, status_code, headers
|
|
562
|
-
end
|
|
563
282
|
end
|
|
564
283
|
end
|
data/lib/late-sdk/version.rb
CHANGED