one_msg_chat_api 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +10 -0
- data/docs/AddTemplateRequest.md +24 -0
- data/docs/BlockUserRequest.md +18 -0
- data/docs/CallingApi.md +231 -0
- data/docs/CatalogApi.md +153 -0
- data/docs/ChannelApi.md +225 -0
- data/docs/ConversationalAutomation.md +22 -0
- data/docs/ConversationalAutomationCommandsInner.md +20 -0
- data/docs/CreateCommerce200Response.md +18 -0
- data/docs/CreateCommerceRequest.md +18 -0
- data/docs/CreateCommerceRequestParams.md +20 -0
- data/docs/CreateGroups200Response.md +18 -0
- data/docs/CreateReadMessage200Response.md +18 -0
- data/docs/CreateReadMessage401Response.md +18 -0
- data/docs/CreateReadMessageRequest.md +22 -0
- data/docs/DeleteFlowsFlowId200Response.md +20 -0
- data/docs/DeleteGroupsGroupId200Response.md +20 -0
- data/docs/DeleteMediaLegacyRequest.md +18 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/FlowsApi.md +836 -0
- data/docs/GetCommerce200ResponseInner.md +22 -0
- data/docs/GetMmLiteStatus200Response.md +22 -0
- data/docs/GetWebhook200Response.md +18 -0
- data/docs/GetWhatsappBusinessEncryption200Response.md +22 -0
- data/docs/GroupsApi.md +507 -0
- data/docs/ListBlockedUsers200Response.md +18 -0
- data/docs/ListFlows200Response.md +26 -0
- data/docs/ListMessages200Response.md +20 -0
- data/docs/ListTemplates200Response.md +22 -0
- data/docs/MessageSentResponse.md +24 -0
- data/docs/MessagingApi.md +1784 -0
- data/docs/PatchFlowsFlowIdAssets200Response.md +22 -0
- data/docs/ProfileApi.md +155 -0
- data/docs/ProfileInfo.md +32 -0
- data/docs/RetrieveMedia200Response.md +26 -0
- data/docs/SendAddressMessageRequest.md +32 -0
- data/docs/SendButtonRequest.md +24 -0
- data/docs/SendButtonRequestSectionsInner.md +20 -0
- data/docs/SendButtonRequestSectionsInnerReply.md +20 -0
- data/docs/SendCarouselRequest1.md +26 -0
- data/docs/SendContactRequest.md +20 -0
- data/docs/SendContactRequestContactsInner.md +30 -0
- data/docs/SendContactRequestContactsInnerName.md +28 -0
- data/docs/SendContactRequestContactsInnerOrg.md +22 -0
- data/docs/SendContactRequestContactsInnerPhonesInner.md +22 -0
- data/docs/SendCtaUrlRequest.md +32 -0
- data/docs/SendFileRequest.md +34 -0
- data/docs/SendFlowRequest1.md +46 -0
- data/docs/SendFlowRequest1Header.md +49 -0
- data/docs/SendFlowRequestHeader.md +49 -0
- data/docs/SendListRequest.md +26 -0
- data/docs/SendListRequestSectionsInner.md +20 -0
- data/docs/SendListRequestSectionsInnerRowsInner.md +22 -0
- data/docs/SendLocationRequest1.md +30 -0
- data/docs/SendLocationRequestRequest.md +20 -0
- data/docs/SendMessageRequest.md +24 -0
- data/docs/SendOrderDetailsRequest.md +36 -0
- data/docs/SendOrderDetailsRequestLanguage.md +20 -0
- data/docs/SendOrderDetailsRequestOrder.md +28 -0
- data/docs/SendOrderDetailsRequestOrderItemsInner.md +24 -0
- data/docs/SendOrderDetailsRequestOrderItemsInnerAmount.md +20 -0
- data/docs/SendPaymentRequestRequest.md +26 -0
- data/docs/SendReactionRequest.md +22 -0
- data/docs/SendStickerRequest.md +26 -0
- data/docs/SendTemplateRequest.md +32 -0
- data/docs/SendTemplateRequestLanguage.md +20 -0
- data/docs/SetWhatsappBusinessEncryptionRequest.md +21 -0
- data/docs/SuccessResponse.md +18 -0
- data/docs/TemplatesApi.md +301 -0
- data/docs/UpdateMeRequest.md +30 -0
- data/docs/UsersApi.md +223 -0
- data/docs/WebhooksApi.md +155 -0
- data/git_push.sh +57 -0
- data/lib/one_msg_chat_api/api/calling_api.rb +228 -0
- data/lib/one_msg_chat_api/api/catalog_api.rb +161 -0
- data/lib/one_msg_chat_api/api/channel_api.rb +225 -0
- data/lib/one_msg_chat_api/api/flows_api.rb +788 -0
- data/lib/one_msg_chat_api/api/groups_api.rb +486 -0
- data/lib/one_msg_chat_api/api/messaging_api.rb +1833 -0
- data/lib/one_msg_chat_api/api/profile_api.rb +157 -0
- data/lib/one_msg_chat_api/api/templates_api.rb +293 -0
- data/lib/one_msg_chat_api/api/users_api.rb +232 -0
- data/lib/one_msg_chat_api/api/webhooks_api.rb +157 -0
- data/lib/one_msg_chat_api/api_client.rb +441 -0
- data/lib/one_msg_chat_api/api_error.rb +58 -0
- data/lib/one_msg_chat_api/api_model_base.rb +88 -0
- data/lib/one_msg_chat_api/configuration.rb +400 -0
- data/lib/one_msg_chat_api/models/add_template_request.rb +176 -0
- data/lib/one_msg_chat_api/models/block_user_request.rb +164 -0
- data/lib/one_msg_chat_api/models/conversational_automation.rb +210 -0
- data/lib/one_msg_chat_api/models/conversational_automation_commands_inner.rb +208 -0
- data/lib/one_msg_chat_api/models/create_commerce200_response.rb +147 -0
- data/lib/one_msg_chat_api/models/create_commerce_request.rb +164 -0
- data/lib/one_msg_chat_api/models/create_commerce_request_params.rb +192 -0
- data/lib/one_msg_chat_api/models/create_groups200_response.rb +149 -0
- data/lib/one_msg_chat_api/models/create_read_message200_response.rb +147 -0
- data/lib/one_msg_chat_api/models/create_read_message401_response.rb +147 -0
- data/lib/one_msg_chat_api/models/create_read_message_request.rb +168 -0
- data/lib/one_msg_chat_api/models/delete_flows_flow_id200_response.rb +158 -0
- data/lib/one_msg_chat_api/models/delete_groups_group_id200_response.rb +158 -0
- data/lib/one_msg_chat_api/models/delete_media_legacy_request.rb +165 -0
- data/lib/one_msg_chat_api/models/error_response.rb +149 -0
- data/lib/one_msg_chat_api/models/get_commerce200_response_inner.rb +168 -0
- data/lib/one_msg_chat_api/models/get_mm_lite_status200_response.rb +165 -0
- data/lib/one_msg_chat_api/models/get_webhook200_response.rb +147 -0
- data/lib/one_msg_chat_api/models/get_whatsapp_business_encryption200_response.rb +202 -0
- data/lib/one_msg_chat_api/models/list_blocked_users200_response.rb +149 -0
- data/lib/one_msg_chat_api/models/list_flows200_response.rb +189 -0
- data/lib/one_msg_chat_api/models/list_messages200_response.rb +158 -0
- data/lib/one_msg_chat_api/models/list_templates200_response.rb +169 -0
- data/lib/one_msg_chat_api/models/message_sent_response.rb +179 -0
- data/lib/one_msg_chat_api/models/patch_flows_flow_id_assets200_response.rb +169 -0
- data/lib/one_msg_chat_api/models/profile_info.rb +254 -0
- data/lib/one_msg_chat_api/models/retrieve_media200_response.rb +183 -0
- data/lib/one_msg_chat_api/models/send_address_message_request.rb +273 -0
- data/lib/one_msg_chat_api/models/send_button_request.rb +176 -0
- data/lib/one_msg_chat_api/models/send_button_request_sections_inner.rb +156 -0
- data/lib/one_msg_chat_api/models/send_button_request_sections_inner_reply.rb +156 -0
- data/lib/one_msg_chat_api/models/send_carousel_request1.rb +202 -0
- data/lib/one_msg_chat_api/models/send_contact_request.rb +158 -0
- data/lib/one_msg_chat_api/models/send_contact_request_contacts_inner.rb +209 -0
- data/lib/one_msg_chat_api/models/send_contact_request_contacts_inner_name.rb +192 -0
- data/lib/one_msg_chat_api/models/send_contact_request_contacts_inner_org.rb +165 -0
- data/lib/one_msg_chat_api/models/send_contact_request_contacts_inner_phones_inner.rb +165 -0
- data/lib/one_msg_chat_api/models/send_cta_url_request.rb +264 -0
- data/lib/one_msg_chat_api/models/send_file_request.rb +278 -0
- data/lib/one_msg_chat_api/models/send_flow_request1.rb +387 -0
- data/lib/one_msg_chat_api/models/send_flow_request1_header.rb +104 -0
- data/lib/one_msg_chat_api/models/send_flow_request_header.rb +105 -0
- data/lib/one_msg_chat_api/models/send_list_request.rb +185 -0
- data/lib/one_msg_chat_api/models/send_list_request_sections_inner.rb +158 -0
- data/lib/one_msg_chat_api/models/send_list_request_sections_inner_rows_inner.rb +165 -0
- data/lib/one_msg_chat_api/models/send_location_request1.rb +235 -0
- data/lib/one_msg_chat_api/models/send_location_request_request.rb +156 -0
- data/lib/one_msg_chat_api/models/send_message_request.rb +284 -0
- data/lib/one_msg_chat_api/models/send_order_details_request.rb +308 -0
- data/lib/one_msg_chat_api/models/send_order_details_request_language.rb +176 -0
- data/lib/one_msg_chat_api/models/send_order_details_request_order.rb +220 -0
- data/lib/one_msg_chat_api/models/send_order_details_request_order_items_inner.rb +174 -0
- data/lib/one_msg_chat_api/models/send_order_details_request_order_items_inner_amount.rb +156 -0
- data/lib/one_msg_chat_api/models/send_payment_request_request.rb +245 -0
- data/lib/one_msg_chat_api/models/send_reaction_request.rb +165 -0
- data/lib/one_msg_chat_api/models/send_sticker_request.rb +185 -0
- data/lib/one_msg_chat_api/models/send_template_request.rb +215 -0
- data/lib/one_msg_chat_api/models/send_template_request_language.rb +156 -0
- data/lib/one_msg_chat_api/models/set_whatsapp_business_encryption_request.rb +165 -0
- data/lib/one_msg_chat_api/models/success_response.rb +149 -0
- data/lib/one_msg_chat_api/models/update_me_request.rb +207 -0
- data/lib/one_msg_chat_api/version.rb +15 -0
- data/lib/one_msg_chat_api.rb +111 -0
- data/one_msg_chat_api.gemspec +41 -0
- data/spec/api/calling_api_spec.rb +73 -0
- data/spec/api/catalog_api_spec.rb +60 -0
- data/spec/api/channel_api_spec.rb +72 -0
- data/spec/api/flows_api_spec.rb +175 -0
- data/spec/api/groups_api_spec.rb +117 -0
- data/spec/api/messaging_api_spec.rb +359 -0
- data/spec/api/profile_api_spec.rb +60 -0
- data/spec/api/templates_api_spec.rb +83 -0
- data/spec/api/users_api_spec.rb +71 -0
- data/spec/api/webhooks_api_spec.rb +60 -0
- data/spec/models/add_template_request_spec.rb +54 -0
- data/spec/models/block_user_request_spec.rb +36 -0
- data/spec/models/conversational_automation_commands_inner_spec.rb +42 -0
- data/spec/models/conversational_automation_spec.rb +48 -0
- data/spec/models/create_commerce200_response_spec.rb +36 -0
- data/spec/models/create_commerce_request_params_spec.rb +42 -0
- data/spec/models/create_commerce_request_spec.rb +36 -0
- data/spec/models/create_groups200_response_spec.rb +36 -0
- data/spec/models/create_read_message200_response_spec.rb +36 -0
- data/spec/models/create_read_message401_response_spec.rb +36 -0
- data/spec/models/create_read_message_request_spec.rb +48 -0
- data/spec/models/delete_flows_flow_id200_response_spec.rb +42 -0
- data/spec/models/delete_groups_group_id200_response_spec.rb +42 -0
- data/spec/models/delete_media_legacy_request_spec.rb +36 -0
- data/spec/models/error_response_spec.rb +36 -0
- data/spec/models/get_commerce200_response_inner_spec.rb +48 -0
- data/spec/models/get_mm_lite_status200_response_spec.rb +48 -0
- data/spec/models/get_webhook200_response_spec.rb +36 -0
- data/spec/models/get_whatsapp_business_encryption200_response_spec.rb +52 -0
- data/spec/models/list_blocked_users200_response_spec.rb +36 -0
- data/spec/models/list_flows200_response_spec.rb +60 -0
- data/spec/models/list_messages200_response_spec.rb +42 -0
- data/spec/models/list_templates200_response_spec.rb +48 -0
- data/spec/models/message_sent_response_spec.rb +54 -0
- data/spec/models/patch_flows_flow_id_assets200_response_spec.rb +48 -0
- data/spec/models/profile_info_spec.rb +82 -0
- data/spec/models/retrieve_media200_response_spec.rb +60 -0
- data/spec/models/send_address_message_request_spec.rb +82 -0
- data/spec/models/send_button_request_sections_inner_reply_spec.rb +42 -0
- data/spec/models/send_button_request_sections_inner_spec.rb +42 -0
- data/spec/models/send_button_request_spec.rb +54 -0
- data/spec/models/send_carousel_request1_spec.rb +60 -0
- data/spec/models/send_contact_request_contacts_inner_name_spec.rb +66 -0
- data/spec/models/send_contact_request_contacts_inner_org_spec.rb +48 -0
- data/spec/models/send_contact_request_contacts_inner_phones_inner_spec.rb +48 -0
- data/spec/models/send_contact_request_contacts_inner_spec.rb +72 -0
- data/spec/models/send_contact_request_spec.rb +42 -0
- data/spec/models/send_cta_url_request_spec.rb +78 -0
- data/spec/models/send_file_request_spec.rb +88 -0
- data/spec/models/send_flow_request1_header_spec.rb +32 -0
- data/spec/models/send_flow_request1_spec.rb +128 -0
- data/spec/models/send_flow_request_header_spec.rb +32 -0
- data/spec/models/send_list_request_sections_inner_rows_inner_spec.rb +48 -0
- data/spec/models/send_list_request_sections_inner_spec.rb +42 -0
- data/spec/models/send_list_request_spec.rb +60 -0
- data/spec/models/send_location_request1_spec.rb +72 -0
- data/spec/models/send_location_request_request_spec.rb +42 -0
- data/spec/models/send_message_request_spec.rb +54 -0
- data/spec/models/send_order_details_request_language_spec.rb +42 -0
- data/spec/models/send_order_details_request_order_items_inner_amount_spec.rb +42 -0
- data/spec/models/send_order_details_request_order_items_inner_spec.rb +54 -0
- data/spec/models/send_order_details_request_order_spec.rb +66 -0
- data/spec/models/send_order_details_request_spec.rb +90 -0
- data/spec/models/send_payment_request_request_spec.rb +64 -0
- data/spec/models/send_reaction_request_spec.rb +48 -0
- data/spec/models/send_sticker_request_spec.rb +60 -0
- data/spec/models/send_template_request_language_spec.rb +42 -0
- data/spec/models/send_template_request_spec.rb +78 -0
- data/spec/models/set_whatsapp_business_encryption_request_spec.rb +36 -0
- data/spec/models/success_response_spec.rb +36 -0
- data/spec/models/update_me_request_spec.rb +72 -0
- data/spec/spec_helper.rb +111 -0
- metadata +408 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OneMsgChatApi::PatchFlowsFlowIdAssets200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **validation_errors** | **Array<Hash<String, Object>>** | | [optional] |
|
|
9
|
+
| **error** | **Object** | Error details returned by the provider. May be a string or a JSON object. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'one_msg_chat_api'
|
|
15
|
+
|
|
16
|
+
instance = OneMsgChatApi::PatchFlowsFlowIdAssets200Response.new(
|
|
17
|
+
success: null,
|
|
18
|
+
validation_errors: null,
|
|
19
|
+
error: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/ProfileApi.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# OneMsgChatApi::ProfileApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.1msg.io*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_me**](ProfileApi.md#get_me) | **GET** /me | Get Profile Info |
|
|
8
|
+
| [**update_me**](ProfileApi.md#update_me) | **POST** /me | Update profile info |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## get_me
|
|
12
|
+
|
|
13
|
+
> <ProfileInfo> get_me(token)
|
|
14
|
+
|
|
15
|
+
Get Profile Info
|
|
16
|
+
|
|
17
|
+
Get WhatsApp Business Account profile information
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'one_msg_chat_api'
|
|
24
|
+
# setup authorization
|
|
25
|
+
OneMsgChatApi.configure do |config|
|
|
26
|
+
# Configure API key authorization: tokenAuth
|
|
27
|
+
config.api_key['token'] = 'YOUR API KEY'
|
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
29
|
+
# config.api_key_prefix['token'] = 'Bearer'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = OneMsgChatApi::ProfileApi.new
|
|
33
|
+
token = 'token_example' # String | JWT token or API key for authorization
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
# Get Profile Info
|
|
37
|
+
result = api_instance.get_me(token)
|
|
38
|
+
p result
|
|
39
|
+
rescue OneMsgChatApi::ApiError => e
|
|
40
|
+
puts "Error when calling ProfileApi->get_me: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Using the get_me_with_http_info variant
|
|
45
|
+
|
|
46
|
+
This returns an Array which contains the response data, status code and headers.
|
|
47
|
+
|
|
48
|
+
> <Array(<ProfileInfo>, Integer, Hash)> get_me_with_http_info(token)
|
|
49
|
+
|
|
50
|
+
```ruby
|
|
51
|
+
begin
|
|
52
|
+
# Get Profile Info
|
|
53
|
+
data, status_code, headers = api_instance.get_me_with_http_info(token)
|
|
54
|
+
p status_code # => 2xx
|
|
55
|
+
p headers # => { ... }
|
|
56
|
+
p data # => <ProfileInfo>
|
|
57
|
+
rescue OneMsgChatApi::ApiError => e
|
|
58
|
+
puts "Error when calling ProfileApi->get_me_with_http_info: #{e}"
|
|
59
|
+
end
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
| Name | Type | Description | Notes |
|
|
65
|
+
| ---- | ---- | ----------- | ----- |
|
|
66
|
+
| **token** | **String** | JWT token or API key for authorization | |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**ProfileInfo**](ProfileInfo.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: Not defined
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## update_me
|
|
83
|
+
|
|
84
|
+
> Hash<String, Object> update_me(token, opts)
|
|
85
|
+
|
|
86
|
+
Update profile info
|
|
87
|
+
|
|
88
|
+
Update WhatsApp Business Account profile fields. At least one of about, description, email, photo, address, vertical, websites is required. Blocked when the channel subscription limit is exceeded.
|
|
89
|
+
|
|
90
|
+
### Examples
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
require 'time'
|
|
94
|
+
require 'one_msg_chat_api'
|
|
95
|
+
# setup authorization
|
|
96
|
+
OneMsgChatApi.configure do |config|
|
|
97
|
+
# Configure API key authorization: tokenAuth
|
|
98
|
+
config.api_key['token'] = 'YOUR API KEY'
|
|
99
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
100
|
+
# config.api_key_prefix['token'] = 'Bearer'
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
api_instance = OneMsgChatApi::ProfileApi.new
|
|
104
|
+
token = 'token_example' # String | JWT token or API key for authorization
|
|
105
|
+
opts = {
|
|
106
|
+
update_me_request: OneMsgChatApi::UpdateMeRequest.new # UpdateMeRequest |
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
begin
|
|
110
|
+
# Update profile info
|
|
111
|
+
result = api_instance.update_me(token, opts)
|
|
112
|
+
p result
|
|
113
|
+
rescue OneMsgChatApi::ApiError => e
|
|
114
|
+
puts "Error when calling ProfileApi->update_me: #{e}"
|
|
115
|
+
end
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Using the update_me_with_http_info variant
|
|
119
|
+
|
|
120
|
+
This returns an Array which contains the response data, status code and headers.
|
|
121
|
+
|
|
122
|
+
> <Array(Hash<String, Object>, Integer, Hash)> update_me_with_http_info(token, opts)
|
|
123
|
+
|
|
124
|
+
```ruby
|
|
125
|
+
begin
|
|
126
|
+
# Update profile info
|
|
127
|
+
data, status_code, headers = api_instance.update_me_with_http_info(token, opts)
|
|
128
|
+
p status_code # => 2xx
|
|
129
|
+
p headers # => { ... }
|
|
130
|
+
p data # => Hash<String, Object>
|
|
131
|
+
rescue OneMsgChatApi::ApiError => e
|
|
132
|
+
puts "Error when calling ProfileApi->update_me_with_http_info: #{e}"
|
|
133
|
+
end
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
| Name | Type | Description | Notes |
|
|
139
|
+
| ---- | ---- | ----------- | ----- |
|
|
140
|
+
| **token** | **String** | JWT token or API key for authorization | |
|
|
141
|
+
| **update_me_request** | [**UpdateMeRequest**](UpdateMeRequest.md) | | [optional] |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
**Hash<String, Object>**
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: application/json
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
data/docs/ProfileInfo.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OneMsgChatApi::ProfileInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **about** | **String** | Profile's About section | [optional] |
|
|
8
|
+
| **address** | **String** | Address of the business | [optional] |
|
|
9
|
+
| **description** | **String** | Description of the business | [optional] |
|
|
10
|
+
| **email** | **String** | Business email | [optional] |
|
|
11
|
+
| **phone** | **String** | Linked phone number | [optional] |
|
|
12
|
+
| **vertical** | **String** | Industry of the business | [optional] |
|
|
13
|
+
| **photo** | **String** | Profile photo URL | [optional] |
|
|
14
|
+
| **websites** | **Array<String>** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'one_msg_chat_api'
|
|
20
|
+
|
|
21
|
+
instance = OneMsgChatApi::ProfileInfo.new(
|
|
22
|
+
about: null,
|
|
23
|
+
address: null,
|
|
24
|
+
description: null,
|
|
25
|
+
email: null,
|
|
26
|
+
phone: null,
|
|
27
|
+
vertical: null,
|
|
28
|
+
photo: null,
|
|
29
|
+
websites: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OneMsgChatApi::RetrieveMedia200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **url** | **String** | | [optional] |
|
|
8
|
+
| **mime_type** | **String** | | [optional] |
|
|
9
|
+
| **sha256** | **String** | | [optional] |
|
|
10
|
+
| **file_size** | **Integer** | | [optional] |
|
|
11
|
+
| **id** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'one_msg_chat_api'
|
|
17
|
+
|
|
18
|
+
instance = OneMsgChatApi::RetrieveMedia200Response.new(
|
|
19
|
+
url: null,
|
|
20
|
+
mime_type: null,
|
|
21
|
+
sha256: null,
|
|
22
|
+
file_size: null,
|
|
23
|
+
id: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OneMsgChatApi::SendAddressMessageRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **Integer** | Recipient phone (E.164 digits, no +). Must match country. | [optional] |
|
|
8
|
+
| **chat_id** | **String** | | [optional] |
|
|
9
|
+
| **body** | **String** | Body text shown with the address request | |
|
|
10
|
+
| **country** | **String** | Address form country. Defaults to IN if omitted. | [optional] |
|
|
11
|
+
| **values** | **Hash<String, Object>** | Optional prefilled address fields | [optional] |
|
|
12
|
+
| **saved_addresses** | **Array<Hash<String, Object>>** | Optional previously saved addresses for the user | [optional] |
|
|
13
|
+
| **validation_errors** | **Hash<String, Object>** | Optional field validation errors when re-prompting | [optional] |
|
|
14
|
+
| **quoted_msg_id** | **String** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'one_msg_chat_api'
|
|
20
|
+
|
|
21
|
+
instance = OneMsgChatApi::SendAddressMessageRequest.new(
|
|
22
|
+
phone: null,
|
|
23
|
+
chat_id: null,
|
|
24
|
+
body: null,
|
|
25
|
+
country: SG,
|
|
26
|
+
values: null,
|
|
27
|
+
saved_addresses: null,
|
|
28
|
+
validation_errors: null,
|
|
29
|
+
quoted_msg_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# OneMsgChatApi::SendButtonRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **String** | | [optional] |
|
|
8
|
+
| **body** | **String** | | [optional] |
|
|
9
|
+
| **footer** | **String** | | [optional] |
|
|
10
|
+
| **sections** | [**Array<SendButtonRequestSectionsInner>**](SendButtonRequestSectionsInner.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'one_msg_chat_api'
|
|
16
|
+
|
|
17
|
+
instance = OneMsgChatApi::SendButtonRequest.new(
|
|
18
|
+
phone: null,
|
|
19
|
+
body: null,
|
|
20
|
+
footer: null,
|
|
21
|
+
sections: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OneMsgChatApi::SendButtonRequestSectionsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | [optional] |
|
|
8
|
+
| **reply** | [**SendButtonRequestSectionsInnerReply**](SendButtonRequestSectionsInnerReply.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'one_msg_chat_api'
|
|
14
|
+
|
|
15
|
+
instance = OneMsgChatApi::SendButtonRequestSectionsInner.new(
|
|
16
|
+
type: null,
|
|
17
|
+
reply: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OneMsgChatApi::SendButtonRequestSectionsInnerReply
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **title** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'one_msg_chat_api'
|
|
14
|
+
|
|
15
|
+
instance = OneMsgChatApi::SendButtonRequestSectionsInnerReply.new(
|
|
16
|
+
id: null,
|
|
17
|
+
title: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OneMsgChatApi::SendCarouselRequest1
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **body** | **String** | | [optional] |
|
|
8
|
+
| **params** | **Array<Object>** | | |
|
|
9
|
+
| **quoted_msg_id** | **String** | | [optional] |
|
|
10
|
+
| **chat_id** | **String** | | [optional] |
|
|
11
|
+
| **phone** | **Integer** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'one_msg_chat_api'
|
|
17
|
+
|
|
18
|
+
instance = OneMsgChatApi::SendCarouselRequest1.new(
|
|
19
|
+
body: null,
|
|
20
|
+
params: null,
|
|
21
|
+
quoted_msg_id: null,
|
|
22
|
+
chat_id: null,
|
|
23
|
+
phone: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# OneMsgChatApi::SendContactRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **String** | | [optional] |
|
|
8
|
+
| **contacts** | [**Array<SendContactRequestContactsInner>**](SendContactRequestContactsInner.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'one_msg_chat_api'
|
|
14
|
+
|
|
15
|
+
instance = OneMsgChatApi::SendContactRequest.new(
|
|
16
|
+
phone: null,
|
|
17
|
+
contacts: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# OneMsgChatApi::SendContactRequestContactsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | [**SendContactRequestContactsInnerName**](SendContactRequestContactsInnerName.md) | | [optional] |
|
|
8
|
+
| **birthday** | **String** | | [optional] |
|
|
9
|
+
| **addresses** | **Array<Object>** | | [optional] |
|
|
10
|
+
| **emails** | **Array<Object>** | | [optional] |
|
|
11
|
+
| **org** | [**SendContactRequestContactsInnerOrg**](SendContactRequestContactsInnerOrg.md) | | [optional] |
|
|
12
|
+
| **phones** | [**Array<SendContactRequestContactsInnerPhonesInner>**](SendContactRequestContactsInnerPhonesInner.md) | | [optional] |
|
|
13
|
+
| **urls** | **Array<Object>** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'one_msg_chat_api'
|
|
19
|
+
|
|
20
|
+
instance = OneMsgChatApi::SendContactRequestContactsInner.new(
|
|
21
|
+
name: null,
|
|
22
|
+
birthday: null,
|
|
23
|
+
addresses: null,
|
|
24
|
+
emails: null,
|
|
25
|
+
org: null,
|
|
26
|
+
phones: null,
|
|
27
|
+
urls: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# OneMsgChatApi::SendContactRequestContactsInnerName
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **formatted_name** | **String** | | [optional] |
|
|
8
|
+
| **first_name** | **String** | | [optional] |
|
|
9
|
+
| **last_name** | **String** | | [optional] |
|
|
10
|
+
| **middle_name** | **String** | | [optional] |
|
|
11
|
+
| **suffix** | **String** | | [optional] |
|
|
12
|
+
| **prefix** | **String** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'one_msg_chat_api'
|
|
18
|
+
|
|
19
|
+
instance = OneMsgChatApi::SendContactRequestContactsInnerName.new(
|
|
20
|
+
formatted_name: null,
|
|
21
|
+
first_name: null,
|
|
22
|
+
last_name: null,
|
|
23
|
+
middle_name: null,
|
|
24
|
+
suffix: null,
|
|
25
|
+
prefix: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OneMsgChatApi::SendContactRequestContactsInnerOrg
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **company** | **String** | | [optional] |
|
|
8
|
+
| **department** | **String** | | [optional] |
|
|
9
|
+
| **title** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'one_msg_chat_api'
|
|
15
|
+
|
|
16
|
+
instance = OneMsgChatApi::SendContactRequestContactsInnerOrg.new(
|
|
17
|
+
company: null,
|
|
18
|
+
department: null,
|
|
19
|
+
title: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# OneMsgChatApi::SendContactRequestContactsInnerPhonesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | | [optional] |
|
|
9
|
+
| **wa_id** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'one_msg_chat_api'
|
|
15
|
+
|
|
16
|
+
instance = OneMsgChatApi::SendContactRequestContactsInnerPhonesInner.new(
|
|
17
|
+
phone: null,
|
|
18
|
+
type: null,
|
|
19
|
+
wa_id: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OneMsgChatApi::SendCtaUrlRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phone** | **Integer** | | [optional] |
|
|
8
|
+
| **chat_id** | **String** | | [optional] |
|
|
9
|
+
| **body** | **String** | | |
|
|
10
|
+
| **display_text** | **String** | Button label | |
|
|
11
|
+
| **url** | **String** | | |
|
|
12
|
+
| **header** | **Hash<String, Object>** | | [optional] |
|
|
13
|
+
| **footer** | **String** | | [optional] |
|
|
14
|
+
| **quoted_msg_id** | **String** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'one_msg_chat_api'
|
|
20
|
+
|
|
21
|
+
instance = OneMsgChatApi::SendCtaUrlRequest.new(
|
|
22
|
+
phone: null,
|
|
23
|
+
chat_id: null,
|
|
24
|
+
body: null,
|
|
25
|
+
display_text: null,
|
|
26
|
+
url: null,
|
|
27
|
+
header: null,
|
|
28
|
+
footer: null,
|
|
29
|
+
quoted_msg_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# OneMsgChatApi::SendFileRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **body** | **String** | File source (required unless mediaId is set): - HTTP/HTTPS URL - Base64 data URI | [optional] |
|
|
8
|
+
| **filename** | **String** | File name with extension (required with body, not with mediaId) | [optional] |
|
|
9
|
+
| **media_id** | **String** | WABA media id from uploadMedia (alternative to body) | [optional] |
|
|
10
|
+
| **media_type** | **String** | Required when using mediaId | [optional] |
|
|
11
|
+
| **voice** | **Boolean** | Native WhatsApp voice note (audio/ogg only) | [optional] |
|
|
12
|
+
| **caption** | **String** | | [optional] |
|
|
13
|
+
| **quoted_msg_id** | **String** | | [optional] |
|
|
14
|
+
| **chat_id** | **String** | | [optional] |
|
|
15
|
+
| **phone** | **Integer** | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'one_msg_chat_api'
|
|
21
|
+
|
|
22
|
+
instance = OneMsgChatApi::SendFileRequest.new(
|
|
23
|
+
body: null,
|
|
24
|
+
filename: null,
|
|
25
|
+
media_id: null,
|
|
26
|
+
media_type: null,
|
|
27
|
+
voice: null,
|
|
28
|
+
caption: null,
|
|
29
|
+
quoted_msg_id: null,
|
|
30
|
+
chat_id: null,
|
|
31
|
+
phone: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# OneMsgChatApi::SendFlowRequest1
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **body** | **String** | | |
|
|
8
|
+
| **header** | [**SendFlowRequest1Header**](SendFlowRequest1Header.md) | | [optional] |
|
|
9
|
+
| **footer** | **String** | | [optional] |
|
|
10
|
+
| **flow_id** | **String** | | |
|
|
11
|
+
| **flow_token** | **String** | | |
|
|
12
|
+
| **flow_cta** | **String** | | |
|
|
13
|
+
| **flow_action** | **String** | | [optional] |
|
|
14
|
+
| **flow_action_payload** | **Object** | | [optional] |
|
|
15
|
+
| **flow_message_version** | **String** | | [optional] |
|
|
16
|
+
| **mode** | **String** | | [optional] |
|
|
17
|
+
| **flow_action_data** | **Object** | | [optional] |
|
|
18
|
+
| **flow_action_screen** | **String** | | [optional] |
|
|
19
|
+
| **quoted_msg_id** | **String** | | [optional] |
|
|
20
|
+
| **chat_id** | **String** | | [optional] |
|
|
21
|
+
| **phone** | **Integer** | | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'one_msg_chat_api'
|
|
27
|
+
|
|
28
|
+
instance = OneMsgChatApi::SendFlowRequest1.new(
|
|
29
|
+
body: null,
|
|
30
|
+
header: null,
|
|
31
|
+
footer: null,
|
|
32
|
+
flow_id: null,
|
|
33
|
+
flow_token: null,
|
|
34
|
+
flow_cta: null,
|
|
35
|
+
flow_action: null,
|
|
36
|
+
flow_action_payload: null,
|
|
37
|
+
flow_message_version: null,
|
|
38
|
+
mode: null,
|
|
39
|
+
flow_action_data: null,
|
|
40
|
+
flow_action_screen: null,
|
|
41
|
+
quoted_msg_id: null,
|
|
42
|
+
chat_id: null,
|
|
43
|
+
phone: null
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# OneMsgChatApi::SendFlowRequest1Header
|
|
2
|
+
|
|
3
|
+
## Class instance methods
|
|
4
|
+
|
|
5
|
+
### `openapi_one_of`
|
|
6
|
+
|
|
7
|
+
Returns the list of classes defined in oneOf.
|
|
8
|
+
|
|
9
|
+
#### Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'one_msg_chat_api'
|
|
13
|
+
|
|
14
|
+
OneMsgChatApi::SendFlowRequest1Header.openapi_one_of
|
|
15
|
+
# =>
|
|
16
|
+
# [
|
|
17
|
+
# :'Object',
|
|
18
|
+
# :'String'
|
|
19
|
+
# ]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### build
|
|
23
|
+
|
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
25
|
+
|
|
26
|
+
#### Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'one_msg_chat_api'
|
|
30
|
+
|
|
31
|
+
OneMsgChatApi::SendFlowRequest1Header.build(data)
|
|
32
|
+
# => #<Object:0x00007fdd4aab02a0>
|
|
33
|
+
|
|
34
|
+
OneMsgChatApi::SendFlowRequest1Header.build(data_that_doesnt_match)
|
|
35
|
+
# => nil
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
| Name | Type | Description |
|
|
41
|
+
| ---- | ---- | ----------- |
|
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
43
|
+
|
|
44
|
+
#### Return type
|
|
45
|
+
|
|
46
|
+
- `Object`
|
|
47
|
+
- `String`
|
|
48
|
+
- `nil` (if no type matches)
|
|
49
|
+
|