messente_api 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +118 -0
  5. data/Rakefile +10 -0
  6. data/docs/BlacklistApi.md +209 -0
  7. data/docs/Channel.md +16 -0
  8. data/docs/ContactEnvelope.md +17 -0
  9. data/docs/ContactFields.md +35 -0
  10. data/docs/ContactListEnvelope.md +17 -0
  11. data/docs/ContactUpdateFields.md +33 -0
  12. data/docs/ContactsApi.md +430 -0
  13. data/docs/DeliveryReportApi.md +60 -0
  14. data/docs/DeliveryReportResponse.md +21 -0
  15. data/docs/DeliveryResult.md +27 -0
  16. data/docs/ErrorCodeOmnichannel.md +16 -0
  17. data/docs/ErrorCodeOmnichannelMachine.md +16 -0
  18. data/docs/ErrorCodePhonebook.md +16 -0
  19. data/docs/ErrorItemOmnichannel.md +23 -0
  20. data/docs/ErrorItemPhonebook.md +21 -0
  21. data/docs/ErrorOmnichannel.md +17 -0
  22. data/docs/ErrorPhonebook.md +17 -0
  23. data/docs/ErrorTitleOmnichannel.md +16 -0
  24. data/docs/ErrorTitlePhonebook.md +16 -0
  25. data/docs/FetchBlacklistSuccess.md +17 -0
  26. data/docs/GroupEnvelope.md +17 -0
  27. data/docs/GroupListEnvelope.md +17 -0
  28. data/docs/GroupName.md +17 -0
  29. data/docs/GroupResponseFields.md +23 -0
  30. data/docs/GroupsApi.md +265 -0
  31. data/docs/MessageResult.md +21 -0
  32. data/docs/NumberToBlacklist.md +17 -0
  33. data/docs/OmniMessageCreateSuccessResponse.md +21 -0
  34. data/docs/Omnimessage.md +25 -0
  35. data/docs/OmnimessageApi.md +111 -0
  36. data/docs/SMS.md +27 -0
  37. data/docs/Status.md +16 -0
  38. data/docs/TextStore.md +16 -0
  39. data/docs/Viber.md +29 -0
  40. data/docs/WhatsApp.md +29 -0
  41. data/docs/WhatsAppAudio.md +17 -0
  42. data/docs/WhatsAppDocument.md +19 -0
  43. data/docs/WhatsAppImage.md +19 -0
  44. data/docs/WhatsAppText.md +19 -0
  45. data/git_push.sh +55 -0
  46. data/lib/messente_api.rb +78 -0
  47. data/lib/messente_api/api/blacklist_api.rb +258 -0
  48. data/lib/messente_api/api/contacts_api.rb +521 -0
  49. data/lib/messente_api/api/delivery_report_api.rb +82 -0
  50. data/lib/messente_api/api/groups_api.rb +326 -0
  51. data/lib/messente_api/api/omnimessage_api.rb +144 -0
  52. data/lib/messente_api/api_client.rb +387 -0
  53. data/lib/messente_api/api_error.rb +57 -0
  54. data/lib/messente_api/configuration.rb +251 -0
  55. data/lib/messente_api/models/channel.rb +37 -0
  56. data/lib/messente_api/models/contact_envelope.rb +196 -0
  57. data/lib/messente_api/models/contact_fields.rb +283 -0
  58. data/lib/messente_api/models/contact_list_envelope.rb +198 -0
  59. data/lib/messente_api/models/contact_update_fields.rb +268 -0
  60. data/lib/messente_api/models/delivery_report_response.rb +234 -0
  61. data/lib/messente_api/models/delivery_result.rb +244 -0
  62. data/lib/messente_api/models/error_code_omnichannel.rb +41 -0
  63. data/lib/messente_api/models/error_code_omnichannel_machine.rb +46 -0
  64. data/lib/messente_api/models/error_code_phonebook.rb +40 -0
  65. data/lib/messente_api/models/error_item_omnichannel.rb +245 -0
  66. data/lib/messente_api/models/error_item_phonebook.rb +230 -0
  67. data/lib/messente_api/models/error_omnichannel.rb +203 -0
  68. data/lib/messente_api/models/error_phonebook.rb +203 -0
  69. data/lib/messente_api/models/error_title_omnichannel.rb +41 -0
  70. data/lib/messente_api/models/error_title_phonebook.rb +40 -0
  71. data/lib/messente_api/models/fetch_blacklist_success.rb +198 -0
  72. data/lib/messente_api/models/group_envelope.rb +196 -0
  73. data/lib/messente_api/models/group_list_envelope.rb +198 -0
  74. data/lib/messente_api/models/group_name.rb +220 -0
  75. data/lib/messente_api/models/group_response_fields.rb +240 -0
  76. data/lib/messente_api/models/message_result.rb +231 -0
  77. data/lib/messente_api/models/number_to_blacklist.rb +202 -0
  78. data/lib/messente_api/models/omni_message_create_success_response.rb +234 -0
  79. data/lib/messente_api/models/omnimessage.rb +247 -0
  80. data/lib/messente_api/models/sms.rb +300 -0
  81. data/lib/messente_api/models/status.rb +45 -0
  82. data/lib/messente_api/models/text_store.rb +37 -0
  83. data/lib/messente_api/models/viber.rb +293 -0
  84. data/lib/messente_api/models/whats_app.rb +289 -0
  85. data/lib/messente_api/models/whats_app_audio.rb +202 -0
  86. data/lib/messente_api/models/whats_app_document.rb +212 -0
  87. data/lib/messente_api/models/whats_app_image.rb +212 -0
  88. data/lib/messente_api/models/whats_app_text.rb +214 -0
  89. data/lib/messente_api/version.rb +15 -0
  90. data/messente_api.gemspec +45 -0
  91. data/spec/api/blacklist_api_spec.rb +78 -0
  92. data/spec/api/contacts_api_spec.rb +126 -0
  93. data/spec/api/delivery_report_api_spec.rb +46 -0
  94. data/spec/api/groups_api_spec.rb +90 -0
  95. data/spec/api/omnimessage_api_spec.rb +57 -0
  96. data/spec/api_client_spec.rb +226 -0
  97. data/spec/configuration_spec.rb +42 -0
  98. data/spec/models/channel_spec.rb +35 -0
  99. data/spec/models/contact_envelope_spec.rb +41 -0
  100. data/spec/models/contact_fields_spec.rb +95 -0
  101. data/spec/models/contact_list_envelope_spec.rb +41 -0
  102. data/spec/models/contact_update_fields_spec.rb +89 -0
  103. data/spec/models/delivery_report_response_spec.rb +53 -0
  104. data/spec/models/delivery_result_spec.rb +71 -0
  105. data/spec/models/error_code_omnichannel_machine_spec.rb +35 -0
  106. data/spec/models/error_code_omnichannel_spec.rb +35 -0
  107. data/spec/models/error_code_phonebook_spec.rb +35 -0
  108. data/spec/models/error_item_omnichannel_spec.rb +59 -0
  109. data/spec/models/error_item_phonebook_spec.rb +53 -0
  110. data/spec/models/error_omnichannel_spec.rb +41 -0
  111. data/spec/models/error_phonebook_spec.rb +41 -0
  112. data/spec/models/error_title_omnichannel_spec.rb +35 -0
  113. data/spec/models/error_title_phonebook_spec.rb +35 -0
  114. data/spec/models/fetch_blacklist_success_spec.rb +41 -0
  115. data/spec/models/group_envelope_spec.rb +41 -0
  116. data/spec/models/group_list_envelope_spec.rb +41 -0
  117. data/spec/models/group_name_spec.rb +41 -0
  118. data/spec/models/group_response_fields_spec.rb +59 -0
  119. data/spec/models/message_result_spec.rb +53 -0
  120. data/spec/models/number_to_blacklist_spec.rb +41 -0
  121. data/spec/models/omni_message_create_success_response_spec.rb +53 -0
  122. data/spec/models/omnimessage_spec.rb +65 -0
  123. data/spec/models/sms_spec.rb +79 -0
  124. data/spec/models/status_spec.rb +35 -0
  125. data/spec/models/text_store_spec.rb +35 -0
  126. data/spec/models/viber_spec.rb +81 -0
  127. data/spec/models/whats_app_audio_spec.rb +41 -0
  128. data/spec/models/whats_app_document_spec.rb +47 -0
  129. data/spec/models/whats_app_image_spec.rb +47 -0
  130. data/spec/models/whats_app_spec.rb +81 -0
  131. data/spec/models/whats_app_text_spec.rb +47 -0
  132. data/spec/spec_helper.rb +111 -0
  133. metadata +401 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c2382cbe5844da072ebb8b89ace9e7b180530a2c
4
+ data.tar.gz: 5d6145ffacbb12b431dacae17b32795fe971e23b
5
+ SHA512:
6
+ metadata.gz: 26874e6db967293d70260653a99b6ecb95eae67a40b49a9dde6f3b55fe5f00e19ead53ee06381e36ae46504fd608bf740ff0d9c4d29b5da7ad0b74dc9acda7fd
7
+ data.tar.gz: 892c40ec0bf1d84a65ed3e669d675e6a91a1d5481f65c04a57101d1400285a0e29a4e8c4efeb8c8abf31cbd5ed1f7bd3265758006665c0939af39e10b1afa95e
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,79 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ messente_api (1.0.1)
5
+ json (~> 2.1, >= 2.1.0)
6
+ typhoeus (~> 1.0, >= 1.0.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ZenTest (4.11.2)
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ autotest (4.4.6)
15
+ ZenTest (>= 4.4.1)
16
+ autotest-fsevent (0.2.14)
17
+ sys-uname
18
+ autotest-growl (0.2.16)
19
+ autotest-rails-pure (4.1.2)
20
+ byebug (10.0.2)
21
+ coderay (1.1.2)
22
+ crack (0.4.3)
23
+ safe_yaml (~> 1.0.0)
24
+ diff-lcs (1.3)
25
+ ethon (0.11.0)
26
+ ffi (>= 1.3.0)
27
+ ffi (1.9.25)
28
+ hashdiff (0.3.7)
29
+ json (2.1.0)
30
+ method_source (0.9.0)
31
+ pry (0.11.3)
32
+ coderay (~> 1.1.0)
33
+ method_source (~> 0.9.0)
34
+ pry-byebug (3.6.0)
35
+ byebug (~> 10.0)
36
+ pry (~> 0.10)
37
+ public_suffix (3.0.3)
38
+ rake (12.0.0)
39
+ rspec (3.8.0)
40
+ rspec-core (~> 3.8.0)
41
+ rspec-expectations (~> 3.8.0)
42
+ rspec-mocks (~> 3.8.0)
43
+ rspec-core (3.8.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-expectations (3.8.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-mocks (3.8.0)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.8.0)
51
+ rspec-support (3.8.0)
52
+ safe_yaml (1.0.4)
53
+ sys-uname (1.0.3)
54
+ ffi (>= 1.0.0)
55
+ typhoeus (1.3.0)
56
+ ethon (>= 0.9.0)
57
+ vcr (3.0.3)
58
+ webmock (1.24.6)
59
+ addressable (>= 2.3.6)
60
+ crack (>= 0.3.2)
61
+ hashdiff
62
+
63
+ PLATFORMS
64
+ ruby
65
+
66
+ DEPENDENCIES
67
+ autotest (~> 4.4, >= 4.4.6)
68
+ autotest-fsevent (~> 0.2, >= 0.2.12)
69
+ autotest-growl (~> 0.2, >= 0.2.16)
70
+ autotest-rails-pure (~> 4.1, >= 4.1.2)
71
+ messente_api!
72
+ pry-byebug
73
+ rake (~> 12.0.0)
74
+ rspec (~> 3.6, >= 3.6.0)
75
+ vcr (~> 3.0, >= 3.0.1)
76
+ webmock (~> 1.24, >= 1.24.3)
77
+
78
+ BUNDLED WITH
79
+ 1.16.1
@@ -0,0 +1,118 @@
1
+ # Messente API Library
2
+
3
+ - Messente API version: 1.0.1
4
+ - Ruby gem version: 1.0.1
5
+
6
+ [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&#39;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.
7
+
8
+ ## Installation
9
+
10
+ Install Messente API library with `gem install messente_api`.
11
+
12
+ ## Features
13
+
14
+ Messente API has the following features:
15
+
16
+ - Omnichannel ([external docs](https://messente.com/documentation/omnichannel-api)),
17
+ - Phonebook ([external docs](https://messente.com/documentation/phonebook-api)).
18
+
19
+ Messente API Library provides the operations described below to access the features.
20
+
21
+ ### BlacklistApi
22
+
23
+ 1. Adds a phone number to the blacklist. [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist)
24
+ 1. Deletes a phone number from the blacklist. [`delete_from_blacklist`](docs/BlacklistApi.md#delete_from_blacklist)
25
+ 1. Returns all blacklisted phone numbers. [`fetch_blacklist`](docs/BlacklistApi.md#fetch_blacklist)
26
+ 1. Checks if a phone number is blacklisted. [`is_blacklisted`](docs/BlacklistApi.md#is_blacklisted)
27
+
28
+ ### ContactsApi
29
+
30
+ 1. Adds a contact to a group. [`add_contact_to_group`](docs/ContactsApi.md#add_contact_to_group)
31
+ 1. Creates a new contact. [`create_contact`](docs/ContactsApi.md#create_contact)
32
+ 1. Deletes a contact. [`delete_contact`](docs/ContactsApi.md#delete_contact)
33
+ 1. Lists a contact. [`fetch_contact`](docs/ContactsApi.md#fetch_contact)
34
+ 1. Lists groups of a contact. [`fetch_contact_groups`](docs/ContactsApi.md#fetch_contact_groups)
35
+ 1. Returns all contacts. [`fetch_contacts`](docs/ContactsApi.md#fetch_contacts)
36
+ 1. Removes a contact from a group. [`remove_contact_from_group`](docs/ContactsApi.md#remove_contact_from_group)
37
+ 1. Updates a contact. [`update_contact`](docs/ContactsApi.md#update_contact)
38
+
39
+ ### DeliveryReportApi
40
+
41
+ 1. Retrieves the delivery report for the Omnimessage. [`retrieve_delivery_report`](docs/DeliveryReportApi.md#retrieve_delivery_report)
42
+
43
+ ### GroupsApi
44
+
45
+ 1. Creates a new group with the provided name. [`create_group`](docs/GroupsApi.md#create_group)
46
+ 1. Deletes a group. [`delete_group`](docs/GroupsApi.md#delete_group)
47
+ 1. Lists a group. [`fetch_group`](docs/GroupsApi.md#fetch_group)
48
+ 1. Returns all groups. [`fetch_groups`](docs/GroupsApi.md#fetch_groups)
49
+ 1. Updates a group with the provided name. [`update_group`](docs/GroupsApi.md#update_group)
50
+
51
+ ### OmnimessageApi
52
+
53
+ 1. Cancels a scheduled Omnimessage. [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message)
54
+ 1. Sends an Omnimessage. [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage)
55
+
56
+ ## Auth
57
+
58
+ **Type**: HTTP basic authentication
59
+
60
+ Read the [external getting-started article](https://messente.com/documentation/getting-started) which explains API keys and Sender ID logic.
61
+
62
+ ## Getting started: sending an omnimessage
63
+
64
+ ```ruby
65
+ require 'messente_api'
66
+
67
+ # setup authorization
68
+ MessenteApi.configure do |config|
69
+ # Configure HTTP basic authorization: basicAuth
70
+ config.username = '<MESSENTE_API_USERNAME>'
71
+ config.password = '<MESSENTE_API_PASSWORD>'
72
+ end
73
+
74
+ api_instance = MessenteApi::OmnimessageApi.new
75
+ omnimessage = MessenteApi::Omnimessage.new
76
+ omnimessage.to = '<phone number in e.164 format>'
77
+ omnimessage.messages = [
78
+ MessenteApi::SMS.new(
79
+ {
80
+ :sender => "<sender name or phone number in e.164 format>",
81
+ :text => "Hello SMS!"
82
+ }
83
+ ),
84
+ MessenteApi::WhatsApp.new(
85
+ {
86
+ :sender => "<sender name or phone number in e.164 format>",
87
+ :text => MessenteApi::WhatsAppText.new(
88
+ {
89
+ :body => "Hello from WhatsApp!",
90
+ :preview_url => false
91
+ }
92
+ )
93
+ }
94
+ ),
95
+ MessenteApi::Viber.new(
96
+ {
97
+ :sender => "<sender name or phone number in e.164 format>",
98
+ :text => "Hello from Viber!"
99
+ }
100
+ )
101
+ ]
102
+
103
+ begin
104
+ result = api_instance.send_omnimessage(omnimessage)
105
+ rescue MessenteApi::ApiError => e
106
+ puts "Exception when calling send_omnimessage: #{e}"
107
+ puts e.response_body
108
+ end
109
+
110
+ ```
111
+
112
+ ## License
113
+
114
+ [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
115
+
116
+ ## Terms
117
+
118
+ [https://messente.com/terms-and-conditions](https://messente.com/terms-and-conditions)
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,209 @@
1
+ # MessenteApi::BlacklistApi
2
+
3
+ All URIs are relative to *https://api.messente.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist.
8
+ [**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist.
9
+ [**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers.
10
+ [**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted.
11
+
12
+
13
+
14
+ ## add_to_blacklist
15
+
16
+ > add_to_blacklist(number_to_blacklist)
17
+
18
+ Adds a phone number to the blacklist.
19
+
20
+ ### Example
21
+
22
+ ```ruby
23
+ # load the gem
24
+ require 'messente_api'
25
+ # setup authorization
26
+ MessenteApi.configure do |config|
27
+ # Configure HTTP basic authorization: basicAuth
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+ end
31
+
32
+ api_instance = MessenteApi::BlacklistApi.new
33
+ number_to_blacklist = MessenteApi::NumberToBlacklist.new # NumberToBlacklist | Phone number to be blacklisted
34
+
35
+ begin
36
+ #Adds a phone number to the blacklist.
37
+ api_instance.add_to_blacklist(number_to_blacklist)
38
+ rescue MessenteApi::ApiError => e
39
+ puts "Exception when calling BlacklistApi->add_to_blacklist: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **number_to_blacklist** | [**NumberToBlacklist**](NumberToBlacklist.md)| Phone number to be blacklisted |
49
+
50
+ ### Return type
51
+
52
+ nil (empty response body)
53
+
54
+ ### Authorization
55
+
56
+ [basicAuth](../README.md#basicAuth)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+ ## delete_from_blacklist
65
+
66
+ > delete_from_blacklist(phone)
67
+
68
+ Deletes a phone number from the blacklist.
69
+
70
+ ### Example
71
+
72
+ ```ruby
73
+ # load the gem
74
+ require 'messente_api'
75
+ # setup authorization
76
+ MessenteApi.configure do |config|
77
+ # Configure HTTP basic authorization: basicAuth
78
+ config.username = 'YOUR USERNAME'
79
+ config.password = 'YOUR PASSWORD'
80
+ end
81
+
82
+ api_instance = MessenteApi::BlacklistApi.new
83
+ phone = 'phone_example' # String | A phone number
84
+
85
+ begin
86
+ #Deletes a phone number from the blacklist.
87
+ api_instance.delete_from_blacklist(phone)
88
+ rescue MessenteApi::ApiError => e
89
+ puts "Exception when calling BlacklistApi->delete_from_blacklist: #{e}"
90
+ end
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+
96
+ Name | Type | Description | Notes
97
+ ------------- | ------------- | ------------- | -------------
98
+ **phone** | **String**| A phone number |
99
+
100
+ ### Return type
101
+
102
+ nil (empty response body)
103
+
104
+ ### Authorization
105
+
106
+ [basicAuth](../README.md#basicAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ## fetch_blacklist
115
+
116
+ > FetchBlacklistSuccess fetch_blacklist
117
+
118
+ Returns all blacklisted phone numbers.
119
+
120
+ ### Example
121
+
122
+ ```ruby
123
+ # load the gem
124
+ require 'messente_api'
125
+ # setup authorization
126
+ MessenteApi.configure do |config|
127
+ # Configure HTTP basic authorization: basicAuth
128
+ config.username = 'YOUR USERNAME'
129
+ config.password = 'YOUR PASSWORD'
130
+ end
131
+
132
+ api_instance = MessenteApi::BlacklistApi.new
133
+
134
+ begin
135
+ #Returns all blacklisted phone numbers.
136
+ result = api_instance.fetch_blacklist
137
+ p result
138
+ rescue MessenteApi::ApiError => e
139
+ puts "Exception when calling BlacklistApi->fetch_blacklist: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ This endpoint does not need any parameter.
146
+
147
+ ### Return type
148
+
149
+ [**FetchBlacklistSuccess**](FetchBlacklistSuccess.md)
150
+
151
+ ### Authorization
152
+
153
+ [basicAuth](../README.md#basicAuth)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json
159
+
160
+
161
+ ## is_blacklisted
162
+
163
+ > is_blacklisted(phone)
164
+
165
+ Checks if a phone number is blacklisted.
166
+
167
+ ### Example
168
+
169
+ ```ruby
170
+ # load the gem
171
+ require 'messente_api'
172
+ # setup authorization
173
+ MessenteApi.configure do |config|
174
+ # Configure HTTP basic authorization: basicAuth
175
+ config.username = 'YOUR USERNAME'
176
+ config.password = 'YOUR PASSWORD'
177
+ end
178
+
179
+ api_instance = MessenteApi::BlacklistApi.new
180
+ phone = 'phone_example' # String | A phone number
181
+
182
+ begin
183
+ #Checks if a phone number is blacklisted.
184
+ api_instance.is_blacklisted(phone)
185
+ rescue MessenteApi::ApiError => e
186
+ puts "Exception when calling BlacklistApi->is_blacklisted: #{e}"
187
+ end
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **phone** | **String**| A phone number |
196
+
197
+ ### Return type
198
+
199
+ nil (empty response body)
200
+
201
+ ### Authorization
202
+
203
+ [basicAuth](../README.md#basicAuth)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: application/json
209
+
@@ -0,0 +1,16 @@
1
+ # MessenteApi::Channel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'MessenteApi'
12
+
13
+ instance = MessenteApi::Channel.new()
14
+ ```
15
+
16
+