messente_api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +22 -22
- data/docs/BlacklistApi.md +12 -12
- data/docs/ContactFields.md +9 -9
- data/docs/ContactListEnvelope.md +1 -1
- data/docs/ContactUpdateFields.md +9 -9
- data/docs/ContactsApi.md +30 -30
- data/docs/DeliveryReportApi.md +6 -6
- data/docs/DeliveryReportResponse.md +2 -2
- data/docs/DeliveryResult.md +1 -1
- data/docs/ErrorItemOmnichannel.md +1 -1
- data/docs/ErrorItemPhonebook.md +1 -1
- data/docs/ErrorOmnichannel.md +1 -1
- data/docs/ErrorPhonebook.md +1 -1
- data/docs/FetchBlacklistSuccess.md +1 -1
- data/docs/GroupListEnvelope.md +1 -1
- data/docs/GroupName.md +1 -1
- data/docs/GroupResponseFields.md +4 -4
- data/docs/GroupsApi.md +21 -21
- data/docs/OmniMessageCreateSuccessResponse.md +2 -2
- data/docs/Omnimessage.md +2 -2
- data/docs/OmnimessageApi.md +8 -8
- data/docs/SMS.md +2 -2
- data/docs/Viber.md +2 -2
- data/docs/WhatsApp.md +1 -1
- data/docs/WhatsAppText.md +1 -1
- data/lib/messente_api.rb +1 -1
- data/lib/messente_api/api/blacklist_api.rb +11 -11
- data/lib/messente_api/api/contacts_api.rb +31 -31
- data/lib/messente_api/api/delivery_report_api.rb +6 -6
- data/lib/messente_api/api/groups_api.rb +22 -22
- data/lib/messente_api/api/omnimessage_api.rb +7 -7
- data/lib/messente_api/api_client.rb +1 -1
- data/lib/messente_api/api_error.rb +1 -1
- data/lib/messente_api/configuration.rb +1 -1
- data/lib/messente_api/models/channel.rb +1 -1
- data/lib/messente_api/models/contact_envelope.rb +2 -1
- data/lib/messente_api/models/contact_fields.rb +11 -1
- data/lib/messente_api/models/contact_list_envelope.rb +3 -1
- data/lib/messente_api/models/contact_update_fields.rb +11 -1
- data/lib/messente_api/models/delivery_report_response.rb +4 -3
- data/lib/messente_api/models/delivery_result.rb +3 -2
- data/lib/messente_api/models/error_code_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_code_omnichannel_machine.rb +1 -1
- data/lib/messente_api/models/error_code_phonebook.rb +1 -1
- data/lib/messente_api/models/error_item_omnichannel.rb +3 -2
- data/lib/messente_api/models/error_item_phonebook.rb +3 -2
- data/lib/messente_api/models/error_omnichannel.rb +3 -1
- data/lib/messente_api/models/error_phonebook.rb +3 -1
- data/lib/messente_api/models/error_title_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_title_phonebook.rb +1 -1
- data/lib/messente_api/models/fetch_blacklist_success.rb +3 -1
- data/lib/messente_api/models/group_envelope.rb +2 -1
- data/lib/messente_api/models/group_list_envelope.rb +3 -1
- data/lib/messente_api/models/group_name.rb +3 -1
- data/lib/messente_api/models/group_response_fields.rb +6 -3
- data/lib/messente_api/models/message_result.rb +2 -1
- data/lib/messente_api/models/number_to_blacklist.rb +2 -1
- data/lib/messente_api/models/omni_message_create_success_response.rb +4 -3
- data/lib/messente_api/models/omnimessage.rb +4 -2
- data/lib/messente_api/models/sms.rb +3 -2
- data/lib/messente_api/models/status.rb +1 -1
- data/lib/messente_api/models/text_store.rb +1 -1
- data/lib/messente_api/models/viber.rb +3 -2
- data/lib/messente_api/models/whats_app.rb +3 -2
- data/lib/messente_api/models/whats_app_audio.rb +2 -1
- data/lib/messente_api/models/whats_app_document.rb +2 -1
- data/lib/messente_api/models/whats_app_image.rb +2 -1
- data/lib/messente_api/models/whats_app_text.rb +3 -2
- data/lib/messente_api/version.rb +2 -2
- data/messente_api.gemspec +1 -1
- data/spec/api/blacklist_api_spec.rb +5 -5
- data/spec/api/contacts_api_spec.rb +12 -12
- data/spec/api/delivery_report_api_spec.rb +3 -3
- data/spec/api/groups_api_spec.rb +9 -9
- data/spec/api/omnimessage_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/channel_spec.rb +1 -1
- data/spec/models/contact_envelope_spec.rb +1 -1
- data/spec/models/contact_fields_spec.rb +1 -1
- data/spec/models/contact_list_envelope_spec.rb +1 -1
- data/spec/models/contact_update_fields_spec.rb +1 -1
- data/spec/models/delivery_report_response_spec.rb +1 -1
- data/spec/models/delivery_result_spec.rb +1 -1
- data/spec/models/error_code_omnichannel_machine_spec.rb +1 -1
- data/spec/models/error_code_omnichannel_spec.rb +1 -1
- data/spec/models/error_code_phonebook_spec.rb +1 -1
- data/spec/models/error_item_omnichannel_spec.rb +1 -1
- data/spec/models/error_item_phonebook_spec.rb +1 -1
- data/spec/models/error_omnichannel_spec.rb +1 -1
- data/spec/models/error_phonebook_spec.rb +1 -1
- data/spec/models/error_title_omnichannel_spec.rb +1 -1
- data/spec/models/error_title_phonebook_spec.rb +1 -1
- data/spec/models/fetch_blacklist_success_spec.rb +1 -1
- data/spec/models/group_envelope_spec.rb +1 -1
- data/spec/models/group_list_envelope_spec.rb +1 -1
- data/spec/models/group_name_spec.rb +1 -1
- data/spec/models/group_response_fields_spec.rb +1 -1
- data/spec/models/message_result_spec.rb +1 -1
- data/spec/models/number_to_blacklist_spec.rb +1 -1
- data/spec/models/omni_message_create_success_response_spec.rb +1 -1
- data/spec/models/omnimessage_spec.rb +1 -1
- data/spec/models/sms_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -1
- data/spec/models/text_store_spec.rb +1 -1
- data/spec/models/viber_spec.rb +1 -1
- data/spec/models/whats_app_audio_spec.rb +1 -1
- data/spec/models/whats_app_document_spec.rb +1 -1
- data/spec/models/whats_app_image_spec.rb +1 -1
- data/spec/models/whats_app_spec.rb +1 -1
- data/spec/models/whats_app_text_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**statuses** | [**Array<DeliveryResult>**](DeliveryResult.md) | Contains the delivery reports for each
|
7
|
+
**statuses** | [**Array<DeliveryResult>**](DeliveryResult.md) | Contains the delivery reports for each channel, ordered by send order |
|
8
8
|
**to** | **String** | Phone number in e.164 format |
|
9
|
-
**omnimessage_id** | **String** | Unique identifier for the
|
9
|
+
**omnimessage_id** | **String** | Unique identifier for the omnimessage |
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
data/docs/DeliveryResult.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**status** | [**Status**](Status.md) | | [optional]
|
8
8
|
**channel** | [**Channel**](Channel.md) | | [optional]
|
9
9
|
**message_id** | **String** | Unique identifier for the message | [optional]
|
10
|
-
**error** | **String** | Human-readable description of what went wrong, *null* in case of success or if the
|
10
|
+
**error** | **String** | Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet | [optional]
|
11
11
|
**err** | [**ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional]
|
12
12
|
**timestamp** | **DateTime** | When this status was received by Omnichannel API | [optional]
|
13
13
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**title** | [**ErrorTitleOmnichannel**](ErrorTitleOmnichannel.md) | |
|
8
|
-
**detail** | **String** | Free form more detailed description of the error
|
8
|
+
**detail** | **String** | Free form more detailed description of the error |
|
9
9
|
**code** | [**ErrorCodeOmnichannel**](ErrorCodeOmnichannel.md) | |
|
10
10
|
**source** | **String** | Describes which field is causing the issue in the payload, null for non 400 status code responses |
|
11
11
|
|
data/docs/ErrorItemPhonebook.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**title** | [**ErrorTitlePhonebook**](ErrorTitlePhonebook.md) | |
|
8
|
-
**detail** | **String** | Free form more detailed description of the error
|
8
|
+
**detail** | **String** | Free form more detailed description of the error |
|
9
9
|
**code** | [**ErrorCodePhonebook**](ErrorCodePhonebook.md) | |
|
10
10
|
|
11
11
|
## Code Sample
|
data/docs/ErrorOmnichannel.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**errors** | [**Array<ErrorItemOmnichannel>**](ErrorItemOmnichannel.md) |
|
7
|
+
**errors** | [**Array<ErrorItemOmnichannel>**](ErrorItemOmnichannel.md) | An array of errors |
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
data/docs/ErrorPhonebook.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**errors** | [**Array<ErrorItemPhonebook>**](ErrorItemPhonebook.md) |
|
7
|
+
**errors** | [**Array<ErrorItemPhonebook>**](ErrorItemPhonebook.md) | An array of errors |
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**phone_numbers** | **Array<String>** |
|
7
|
+
**phone_numbers** | **Array<String>** | Array of unique phone numbers | [optional]
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
data/docs/GroupListEnvelope.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**groups** | [**Array<GroupResponseFields>**](GroupResponseFields.md) |
|
7
|
+
**groups** | [**Array<GroupResponseFields>**](GroupResponseFields.md) | An array of groups | [optional]
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
data/docs/GroupName.md
CHANGED
data/docs/GroupResponseFields.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | Id string in
|
8
|
-
**name** | **String** |
|
9
|
-
**created_on** | **String** |
|
10
|
-
**contacts_count** | **Integer** |
|
7
|
+
**id** | **String** | Id string in UUID format |
|
8
|
+
**name** | **String** | The name of the group |
|
9
|
+
**created_on** | **String** | When the group was created | [optional]
|
10
|
+
**contacts_count** | **Integer** | The count of contacts in the group |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/GroupsApi.md
CHANGED
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.messente.com/v1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name
|
8
|
-
[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group
|
9
|
-
[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group
|
10
|
-
[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups
|
11
|
-
[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name
|
7
|
+
[**create_group**](GroupsApi.md#create_group) | **POST** /phonebook/groups | Creates a new group with the provided name
|
8
|
+
[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /phonebook/groups/{groupId} | Deletes a group
|
9
|
+
[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /phonebook/groups/{groupId} | Lists a group
|
10
|
+
[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /phonebook/groups | Returns all groups
|
11
|
+
[**update_group**](GroupsApi.md#update_group) | **PUT** /phonebook/groups/{groupId} | Updates a group with the provided name
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
16
16
|
|
17
17
|
> GroupEnvelope create_group(group_name)
|
18
18
|
|
19
|
-
Creates a new group with the provided name
|
19
|
+
Creates a new group with the provided name
|
20
20
|
|
21
21
|
### Example
|
22
22
|
|
@@ -34,7 +34,7 @@ api_instance = MessenteApi::GroupsApi.new
|
|
34
34
|
group_name = MessenteApi::GroupName.new # GroupName |
|
35
35
|
|
36
36
|
begin
|
37
|
-
#Creates a new group with the provided name
|
37
|
+
#Creates a new group with the provided name
|
38
38
|
result = api_instance.create_group(group_name)
|
39
39
|
p result
|
40
40
|
rescue MessenteApi::ApiError => e
|
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
|
|
67
67
|
|
68
68
|
> delete_group(group_id)
|
69
69
|
|
70
|
-
Deletes a group
|
70
|
+
Deletes a group
|
71
71
|
|
72
72
|
### Example
|
73
73
|
|
@@ -82,10 +82,10 @@ MessenteApi.configure do |config|
|
|
82
82
|
end
|
83
83
|
|
84
84
|
api_instance = MessenteApi::GroupsApi.new
|
85
|
-
group_id = 'group_id_example' # String | String in
|
85
|
+
group_id = 'group_id_example' # String | String in UUID format
|
86
86
|
|
87
87
|
begin
|
88
|
-
#Deletes a group
|
88
|
+
#Deletes a group
|
89
89
|
api_instance.delete_group(group_id)
|
90
90
|
rescue MessenteApi::ApiError => e
|
91
91
|
puts "Exception when calling GroupsApi->delete_group: #{e}"
|
@@ -97,7 +97,7 @@ end
|
|
97
97
|
|
98
98
|
Name | Type | Description | Notes
|
99
99
|
------------- | ------------- | ------------- | -------------
|
100
|
-
**group_id** | **String**| String in
|
100
|
+
**group_id** | **String**| String in UUID format |
|
101
101
|
|
102
102
|
### Return type
|
103
103
|
|
@@ -117,7 +117,7 @@ nil (empty response body)
|
|
117
117
|
|
118
118
|
> GroupEnvelope fetch_group(group_id)
|
119
119
|
|
120
|
-
Lists a group
|
120
|
+
Lists a group
|
121
121
|
|
122
122
|
### Example
|
123
123
|
|
@@ -132,10 +132,10 @@ MessenteApi.configure do |config|
|
|
132
132
|
end
|
133
133
|
|
134
134
|
api_instance = MessenteApi::GroupsApi.new
|
135
|
-
group_id = 'group_id_example' # String | String in
|
135
|
+
group_id = 'group_id_example' # String | String in UUID format
|
136
136
|
|
137
137
|
begin
|
138
|
-
#Lists a group
|
138
|
+
#Lists a group
|
139
139
|
result = api_instance.fetch_group(group_id)
|
140
140
|
p result
|
141
141
|
rescue MessenteApi::ApiError => e
|
@@ -148,7 +148,7 @@ end
|
|
148
148
|
|
149
149
|
Name | Type | Description | Notes
|
150
150
|
------------- | ------------- | ------------- | -------------
|
151
|
-
**group_id** | **String**| String in
|
151
|
+
**group_id** | **String**| String in UUID format |
|
152
152
|
|
153
153
|
### Return type
|
154
154
|
|
@@ -168,7 +168,7 @@ Name | Type | Description | Notes
|
|
168
168
|
|
169
169
|
> GroupListEnvelope fetch_groups
|
170
170
|
|
171
|
-
Returns all groups
|
171
|
+
Returns all groups
|
172
172
|
|
173
173
|
### Example
|
174
174
|
|
@@ -185,7 +185,7 @@ end
|
|
185
185
|
api_instance = MessenteApi::GroupsApi.new
|
186
186
|
|
187
187
|
begin
|
188
|
-
#Returns all groups
|
188
|
+
#Returns all groups
|
189
189
|
result = api_instance.fetch_groups
|
190
190
|
p result
|
191
191
|
rescue MessenteApi::ApiError => e
|
@@ -215,7 +215,7 @@ This endpoint does not need any parameter.
|
|
215
215
|
|
216
216
|
> GroupEnvelope update_group(group_id, group_name)
|
217
217
|
|
218
|
-
Updates a group with the provided name
|
218
|
+
Updates a group with the provided name
|
219
219
|
|
220
220
|
### Example
|
221
221
|
|
@@ -230,11 +230,11 @@ MessenteApi.configure do |config|
|
|
230
230
|
end
|
231
231
|
|
232
232
|
api_instance = MessenteApi::GroupsApi.new
|
233
|
-
group_id = 'group_id_example' # String | String in
|
233
|
+
group_id = 'group_id_example' # String | String in UUID format
|
234
234
|
group_name = MessenteApi::GroupName.new # GroupName |
|
235
235
|
|
236
236
|
begin
|
237
|
-
#Updates a group with the provided name
|
237
|
+
#Updates a group with the provided name
|
238
238
|
result = api_instance.update_group(group_id, group_name)
|
239
239
|
p result
|
240
240
|
rescue MessenteApi::ApiError => e
|
@@ -247,7 +247,7 @@ end
|
|
247
247
|
|
248
248
|
Name | Type | Description | Notes
|
249
249
|
------------- | ------------- | ------------- | -------------
|
250
|
-
**group_id** | **String**| String in
|
250
|
+
**group_id** | **String**| String in UUID format |
|
251
251
|
**group_name** | [**GroupName**](GroupName.md)| |
|
252
252
|
|
253
253
|
### Return type
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**messages** | [**Array<MessageResult>**](MessageResult.md) | List of messages that compose the
|
7
|
+
**messages** | [**Array<MessageResult>**](MessageResult.md) | List of messages that compose the omnimessage |
|
8
8
|
**to** | **String** | Phone number in e.164 format |
|
9
|
-
**omnimessage_id** | **String** | Unique identifier for the
|
9
|
+
**omnimessage_id** | **String** | Unique identifier for the omnimessage |
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
data/docs/Omnimessage.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**to** | **String** | Phone number in e.164 format |
|
8
|
-
**messages** | [**Array<OneOfViberSMSWhatsApp>**](OneOfViberSMSWhatsApp.md) |
|
8
|
+
**messages** | [**Array<OneOfViberSMSWhatsApp>**](OneOfViberSMSWhatsApp.md) | An array of messages |
|
9
9
|
**dlr_url** | **String** | URL where the delivery report will be sent | [optional]
|
10
10
|
**text_store** | [**TextStore**](TextStore.md) | | [optional]
|
11
|
-
**time_to_send** | **DateTime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC
|
11
|
+
**time_to_send** | **DateTime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
data/docs/OmnimessageApi.md
CHANGED
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.messente.com/v1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage
|
8
|
-
[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage
|
7
|
+
[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage
|
8
|
+
[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage
|
9
9
|
|
10
10
|
|
11
11
|
|
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
13
13
|
|
14
14
|
> cancel_scheduled_message(omnimessage_id)
|
15
15
|
|
16
|
-
Cancels a scheduled Omnimessage
|
16
|
+
Cancels a scheduled Omnimessage
|
17
17
|
|
18
18
|
### Example
|
19
19
|
|
@@ -28,10 +28,10 @@ MessenteApi.configure do |config|
|
|
28
28
|
end
|
29
29
|
|
30
30
|
api_instance = MessenteApi::OmnimessageApi.new
|
31
|
-
omnimessage_id = 'omnimessage_id_example' # String | UUID of the scheduled
|
31
|
+
omnimessage_id = 'omnimessage_id_example' # String | UUID of the scheduled omnimessage to be cancelled
|
32
32
|
|
33
33
|
begin
|
34
|
-
#Cancels a scheduled Omnimessage
|
34
|
+
#Cancels a scheduled Omnimessage
|
35
35
|
api_instance.cancel_scheduled_message(omnimessage_id)
|
36
36
|
rescue MessenteApi::ApiError => e
|
37
37
|
puts "Exception when calling OmnimessageApi->cancel_scheduled_message: #{e}"
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
|
44
44
|
Name | Type | Description | Notes
|
45
45
|
------------- | ------------- | ------------- | -------------
|
46
|
-
**omnimessage_id** |
|
46
|
+
**omnimessage_id** | **String**| UUID of the scheduled omnimessage to be cancelled |
|
47
47
|
|
48
48
|
### Return type
|
49
49
|
|
@@ -63,7 +63,7 @@ nil (empty response body)
|
|
63
63
|
|
64
64
|
> OmniMessageCreateSuccessResponse send_omnimessage(omnimessage)
|
65
65
|
|
66
|
-
Sends an Omnimessage
|
66
|
+
Sends an Omnimessage
|
67
67
|
|
68
68
|
### Example
|
69
69
|
|
@@ -81,7 +81,7 @@ api_instance = MessenteApi::OmnimessageApi.new
|
|
81
81
|
omnimessage = MessenteApi::Omnimessage.new # Omnimessage | Omnimessage to be sent
|
82
82
|
|
83
83
|
begin
|
84
|
-
#Sends an Omnimessage
|
84
|
+
#Sends an Omnimessage
|
85
85
|
result = api_instance.send_omnimessage(omnimessage)
|
86
86
|
p result
|
87
87
|
rescue MessenteApi::ApiError => e
|
data/docs/SMS.md
CHANGED
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
|
|
7
7
|
**text** | **String** | Text content of the SMS |
|
8
8
|
**sender** | **String** | Phone number or alphanumeric sender name | [optional]
|
9
9
|
**validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
|
10
|
-
**autoconvert** | **String** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
|
10
|
+
**autoconvert** | **String** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
|
11
11
|
**udh** | **String** | hex-encoded string containing SMS UDH | [optional]
|
12
|
-
**channel** | **String** |
|
12
|
+
**channel** | **String** | The channel used to deliver the message | [optional] [default to 'sms']
|
13
13
|
|
14
14
|
## Code Sample
|
15
15
|
|
data/docs/Viber.md
CHANGED
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
|
|
7
7
|
**sender** | **String** | Phone number or alphanumeric sender name | [optional]
|
8
8
|
**validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
|
9
9
|
**text** | **String** | Plaintext content for Viber | [optional]
|
10
|
-
**image_url** | **String** | URL for the embedded image
|
10
|
+
**image_url** | **String** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional]
|
11
11
|
**button_url** | **String** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
|
12
12
|
**button_text** | **String** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
|
13
|
-
**channel** | **String** |
|
13
|
+
**channel** | **String** | The channel used to deliver the message | [optional] [default to 'viber']
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
data/docs/WhatsApp.md
CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
|
11
11
|
**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]
|
12
12
|
**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional]
|
13
|
-
**channel** | **String** |
|
13
|
+
**channel** | **String** | The channel used to deliver the message | [optional] [default to 'whatsapp']
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
data/docs/WhatsAppText.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**preview_url** | **Boolean** | Whether to display link preview if the message contains a hyperlink
|
7
|
+
**preview_url** | **Boolean** | Whether to display link preview if the message contains a hyperlink | [optional] [default to true]
|
8
8
|
**body** | **String** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting |
|
9
9
|
|
10
10
|
## Code Sample
|
data/lib/messente_api.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -19,7 +19,7 @@ module MessenteApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Adds a phone number to the blacklist
|
22
|
+
# Adds a phone number to the blacklist
|
23
23
|
# @param number_to_blacklist [NumberToBlacklist] Phone number to be blacklisted
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [nil]
|
@@ -28,7 +28,7 @@ module MessenteApi
|
|
28
28
|
nil
|
29
29
|
end
|
30
30
|
|
31
|
-
# Adds a phone number to the blacklist
|
31
|
+
# Adds a phone number to the blacklist
|
32
32
|
# @param number_to_blacklist [NumberToBlacklist] Phone number to be blacklisted
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -81,7 +81,7 @@ module MessenteApi
|
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
83
83
|
|
84
|
-
# Deletes a phone number from the blacklist
|
84
|
+
# Deletes a phone number from the blacklist
|
85
85
|
# @param phone [String] A phone number
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
87
|
# @return [nil]
|
@@ -90,7 +90,7 @@ module MessenteApi
|
|
90
90
|
nil
|
91
91
|
end
|
92
92
|
|
93
|
-
# Deletes a phone number from the blacklist
|
93
|
+
# Deletes a phone number from the blacklist
|
94
94
|
# @param phone [String] A phone number
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -103,7 +103,7 @@ module MessenteApi
|
|
103
103
|
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.delete_from_blacklist"
|
104
104
|
end
|
105
105
|
# resource path
|
106
|
-
local_var_path = '/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
106
|
+
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
107
107
|
|
108
108
|
# query parameters
|
109
109
|
query_params = opts[:query_params] || {}
|
@@ -141,7 +141,7 @@ module MessenteApi
|
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
143
143
|
|
144
|
-
# Returns all blacklisted phone numbers
|
144
|
+
# Returns all blacklisted phone numbers
|
145
145
|
# @param [Hash] opts the optional parameters
|
146
146
|
# @return [FetchBlacklistSuccess]
|
147
147
|
def fetch_blacklist(opts = {})
|
@@ -149,7 +149,7 @@ module MessenteApi
|
|
149
149
|
data
|
150
150
|
end
|
151
151
|
|
152
|
-
# Returns all blacklisted phone numbers
|
152
|
+
# Returns all blacklisted phone numbers
|
153
153
|
# @param [Hash] opts the optional parameters
|
154
154
|
# @return [Array<(FetchBlacklistSuccess, Integer, Hash)>] FetchBlacklistSuccess data, response status code and response headers
|
155
155
|
def fetch_blacklist_with_http_info(opts = {})
|
@@ -195,7 +195,7 @@ module MessenteApi
|
|
195
195
|
return data, status_code, headers
|
196
196
|
end
|
197
197
|
|
198
|
-
# Checks if a phone number is blacklisted
|
198
|
+
# Checks if a phone number is blacklisted
|
199
199
|
# @param phone [String] A phone number
|
200
200
|
# @param [Hash] opts the optional parameters
|
201
201
|
# @return [nil]
|
@@ -204,7 +204,7 @@ module MessenteApi
|
|
204
204
|
nil
|
205
205
|
end
|
206
206
|
|
207
|
-
# Checks if a phone number is blacklisted
|
207
|
+
# Checks if a phone number is blacklisted
|
208
208
|
# @param phone [String] A phone number
|
209
209
|
# @param [Hash] opts the optional parameters
|
210
210
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -217,7 +217,7 @@ module MessenteApi
|
|
217
217
|
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.is_blacklisted"
|
218
218
|
end
|
219
219
|
# resource path
|
220
|
-
local_var_path = '/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
220
|
+
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
221
221
|
|
222
222
|
# query parameters
|
223
223
|
query_params = opts[:query_params] || {}
|