dialmycalls_client 2.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 (162) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +186 -0
  4. data/dialmycalls_client-1.0.0.gem +0 -0
  5. data/dialmycalls_client.gemspec +55 -0
  6. data/docs/Accessaccount.md +12 -0
  7. data/docs/Account.md +9 -0
  8. data/docs/AccountsApi.md +324 -0
  9. data/docs/CallRecipient.md +19 -0
  10. data/docs/CallerIdsApi.md +386 -0
  11. data/docs/Callerid.md +13 -0
  12. data/docs/CallsApi.md +278 -0
  13. data/docs/Callservice.md +17 -0
  14. data/docs/Contact.md +18 -0
  15. data/docs/ContactAttributes.md +11 -0
  16. data/docs/ContactsApi.md +330 -0
  17. data/docs/CreateAccessAccountParameters.md +10 -0
  18. data/docs/CreateCallParameters.md +18 -0
  19. data/docs/CreateCallerIdParameters.md +9 -0
  20. data/docs/CreateContactParameters.md +14 -0
  21. data/docs/CreateGroupParameters.md +8 -0
  22. data/docs/CreateRecordingByPhoneParameters.md +12 -0
  23. data/docs/CreateRecordingByUrlParameters.md +9 -0
  24. data/docs/CreateRecordingParameters.md +11 -0
  25. data/docs/CreateTextParameters.md +17 -0
  26. data/docs/CreateUnverifiedCallerIdParameters.md +9 -0
  27. data/docs/DoNotContactsApi.md +62 -0
  28. data/docs/Donotcontact.md +12 -0
  29. data/docs/Group.md +12 -0
  30. data/docs/GroupsApi.md +277 -0
  31. data/docs/Identifier.md +8 -0
  32. data/docs/Incomingtext.md +13 -0
  33. data/docs/Keyword.md +12 -0
  34. data/docs/KeywordsApi.md +168 -0
  35. data/docs/Polling.md +10 -0
  36. data/docs/PushToListenAgain.md +9 -0
  37. data/docs/PushToOptOut.md +9 -0
  38. data/docs/PushToRecord.md +9 -0
  39. data/docs/PushToTalk.md +12 -0
  40. data/docs/Recording.md +15 -0
  41. data/docs/RecordingsApi.md +383 -0
  42. data/docs/Service.md +16 -0
  43. data/docs/Shortcode.md +11 -0
  44. data/docs/TextRecipient.md +13 -0
  45. data/docs/TextsApi.md +492 -0
  46. data/docs/UpdateAccessAccountByIdParameters.md +10 -0
  47. data/docs/UpdateCallerIdByIdParameters.md +8 -0
  48. data/docs/UpdateContactByIdParameters.md +14 -0
  49. data/docs/UpdateGroupByIdParameters.md +8 -0
  50. data/docs/UpdateRecordingByIdParameters.md +8 -0
  51. data/docs/UpdateVanityNumberByIdParameters.md +12 -0
  52. data/docs/VanityNumbersApi.md +224 -0
  53. data/docs/Vanitynumber.md +16 -0
  54. data/docs/VerifyCallerIdByIdParameters.md +8 -0
  55. data/git_push.sh +67 -0
  56. data/lib/dialmycalls_client/api/accounts_api.rb +375 -0
  57. data/lib/dialmycalls_client/api/caller_ids_api.rb +440 -0
  58. data/lib/dialmycalls_client/api/calls_api.rb +321 -0
  59. data/lib/dialmycalls_client/api/contacts_api.rb +379 -0
  60. data/lib/dialmycalls_client/api/do_not_contacts_api.rb +90 -0
  61. data/lib/dialmycalls_client/api/groups_api.rb +322 -0
  62. data/lib/dialmycalls_client/api/keywords_api.rb +204 -0
  63. data/lib/dialmycalls_client/api/recordings_api.rb +436 -0
  64. data/lib/dialmycalls_client/api/texts_api.rb +547 -0
  65. data/lib/dialmycalls_client/api/vanity_numbers_api.rb +265 -0
  66. data/lib/dialmycalls_client/api_client.rb +379 -0
  67. data/lib/dialmycalls_client/api_error.rb +47 -0
  68. data/lib/dialmycalls_client/configuration.rb +214 -0
  69. data/lib/dialmycalls_client/models/accessaccount.rb +240 -0
  70. data/lib/dialmycalls_client/models/account.rb +210 -0
  71. data/lib/dialmycalls_client/models/call_recipient.rb +310 -0
  72. data/lib/dialmycalls_client/models/callerid.rb +250 -0
  73. data/lib/dialmycalls_client/models/callservice.rb +290 -0
  74. data/lib/dialmycalls_client/models/contact.rb +300 -0
  75. data/lib/dialmycalls_client/models/contact_attributes.rb +230 -0
  76. data/lib/dialmycalls_client/models/create_access_account_parameters.rb +220 -0
  77. data/lib/dialmycalls_client/models/create_call_parameters.rb +304 -0
  78. data/lib/dialmycalls_client/models/create_caller_id_parameters.rb +210 -0
  79. data/lib/dialmycalls_client/models/create_contact_parameters.rb +262 -0
  80. data/lib/dialmycalls_client/models/create_group_parameters.rb +200 -0
  81. data/lib/dialmycalls_client/models/create_recording_by_phone_parameters.rb +240 -0
  82. data/lib/dialmycalls_client/models/create_recording_by_url_parameters.rb +210 -0
  83. data/lib/dialmycalls_client/models/create_recording_parameters.rb +230 -0
  84. data/lib/dialmycalls_client/models/create_text_parameters.rb +294 -0
  85. data/lib/dialmycalls_client/models/create_unverified_caller_id_parameters.rb +210 -0
  86. data/lib/dialmycalls_client/models/donotcontact.rb +240 -0
  87. data/lib/dialmycalls_client/models/group.rb +240 -0
  88. data/lib/dialmycalls_client/models/identifier.rb +200 -0
  89. data/lib/dialmycalls_client/models/incomingtext.rb +250 -0
  90. data/lib/dialmycalls_client/models/keyword.rb +240 -0
  91. data/lib/dialmycalls_client/models/polling.rb +220 -0
  92. data/lib/dialmycalls_client/models/push_to_listen_again.rb +210 -0
  93. data/lib/dialmycalls_client/models/push_to_opt_out.rb +210 -0
  94. data/lib/dialmycalls_client/models/push_to_record.rb +210 -0
  95. data/lib/dialmycalls_client/models/push_to_talk.rb +240 -0
  96. data/lib/dialmycalls_client/models/recording.rb +270 -0
  97. data/lib/dialmycalls_client/models/service.rb +280 -0
  98. data/lib/dialmycalls_client/models/shortcode.rb +230 -0
  99. data/lib/dialmycalls_client/models/text_recipient.rb +250 -0
  100. data/lib/dialmycalls_client/models/update_access_account_by_id_parameters.rb +220 -0
  101. data/lib/dialmycalls_client/models/update_caller_id_by_id_parameters.rb +200 -0
  102. data/lib/dialmycalls_client/models/update_contact_by_id_parameters.rb +262 -0
  103. data/lib/dialmycalls_client/models/update_group_by_id_parameters.rb +200 -0
  104. data/lib/dialmycalls_client/models/update_recording_by_id_parameters.rb +200 -0
  105. data/lib/dialmycalls_client/models/update_vanity_number_by_id_parameters.rb +242 -0
  106. data/lib/dialmycalls_client/models/vanitynumber.rb +280 -0
  107. data/lib/dialmycalls_client/models/verify_caller_id_by_id_parameters.rb +200 -0
  108. data/lib/dialmycalls_client/version.rb +26 -0
  109. data/lib/dialmycalls_client.rb +99 -0
  110. data/spec/api/accounts_api_spec.rb +118 -0
  111. data/spec/api/caller_ids_api_spec.rb +132 -0
  112. data/spec/api/calls_api_spec.rb +107 -0
  113. data/spec/api/contacts_api_spec.rb +119 -0
  114. data/spec/api/do_not_contacts_api_spec.rb +58 -0
  115. data/spec/api/groups_api_spec.rb +107 -0
  116. data/spec/api/keywords_api_spec.rb +82 -0
  117. data/spec/api/recordings_api_spec.rb +131 -0
  118. data/spec/api/texts_api_spec.rb +155 -0
  119. data/spec/api/vanity_numbers_api_spec.rb +95 -0
  120. data/spec/api_client_spec.rb +237 -0
  121. data/spec/configuration_spec.rb +53 -0
  122. data/spec/models/accessaccount_spec.rb +77 -0
  123. data/spec/models/account_spec.rb +59 -0
  124. data/spec/models/call_recipient_spec.rb +119 -0
  125. data/spec/models/callerid_spec.rb +83 -0
  126. data/spec/models/callservice_spec.rb +107 -0
  127. data/spec/models/contact_attributes_spec.rb +71 -0
  128. data/spec/models/contact_spec.rb +113 -0
  129. data/spec/models/create_access_account_parameters_spec.rb +65 -0
  130. data/spec/models/create_call_parameters_spec.rb +113 -0
  131. data/spec/models/create_caller_id_parameters_spec.rb +59 -0
  132. data/spec/models/create_contact_parameters_spec.rb +89 -0
  133. data/spec/models/create_group_parameters_spec.rb +53 -0
  134. data/spec/models/create_recording_by_phone_parameters_spec.rb +77 -0
  135. data/spec/models/create_recording_by_url_parameters_spec.rb +59 -0
  136. data/spec/models/create_recording_parameters_spec.rb +71 -0
  137. data/spec/models/create_text_parameters_spec.rb +107 -0
  138. data/spec/models/create_unverified_caller_id_parameters_spec.rb +59 -0
  139. data/spec/models/donotcontact_spec.rb +77 -0
  140. data/spec/models/group_spec.rb +77 -0
  141. data/spec/models/identifier_spec.rb +53 -0
  142. data/spec/models/incomingtext_spec.rb +83 -0
  143. data/spec/models/keyword_spec.rb +77 -0
  144. data/spec/models/polling_spec.rb +65 -0
  145. data/spec/models/push_to_listen_again_spec.rb +59 -0
  146. data/spec/models/push_to_opt_out_spec.rb +59 -0
  147. data/spec/models/push_to_record_spec.rb +59 -0
  148. data/spec/models/push_to_talk_spec.rb +77 -0
  149. data/spec/models/recording_spec.rb +95 -0
  150. data/spec/models/service_spec.rb +101 -0
  151. data/spec/models/shortcode_spec.rb +71 -0
  152. data/spec/models/text_recipient_spec.rb +83 -0
  153. data/spec/models/update_access_account_by_id_parameters_spec.rb +65 -0
  154. data/spec/models/update_caller_id_by_id_parameters_spec.rb +53 -0
  155. data/spec/models/update_contact_by_id_parameters_spec.rb +89 -0
  156. data/spec/models/update_group_by_id_parameters_spec.rb +53 -0
  157. data/spec/models/update_recording_by_id_parameters_spec.rb +53 -0
  158. data/spec/models/update_vanity_number_by_id_parameters_spec.rb +77 -0
  159. data/spec/models/vanitynumber_spec.rb +101 -0
  160. data/spec/models/verify_caller_id_by_id_parameters_spec.rb +53 -0
  161. data/spec/spec_helper.rb +122 -0
  162. metadata +436 -0
data/docs/TextsApi.md ADDED
@@ -0,0 +1,492 @@
1
+ # DialMyCalls::TextsApi
2
+
3
+ All URIs are relative to *https://api.dialmycalls.com/2.0*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_text_by_id**](TextsApi.md#cancel_text_by_id) | **DELETE** /service/text/{TextId} | Cancel Text
8
+ [**create_text**](TextsApi.md#create_text) | **POST** /service/text | Create Text
9
+ [**delete_incoming_text_by_id**](TextsApi.md#delete_incoming_text_by_id) | **DELETE** /incoming/text/{TextId} | Delete Incoming Text
10
+ [**get_incoming_text_by_id**](TextsApi.md#get_incoming_text_by_id) | **GET** /incoming/text/{TextId} | Get Incoming Text
11
+ [**get_incoming_texts**](TextsApi.md#get_incoming_texts) | **GET** /incoming/texts | List Incoming Texts
12
+ [**get_short_codes**](TextsApi.md#get_short_codes) | **GET** /shortcodes | List Shortcodes
13
+ [**get_text_by_id**](TextsApi.md#get_text_by_id) | **GET** /service/text/{TextId} | Get Text
14
+ [**get_text_recipients_by_text_id**](TextsApi.md#get_text_recipients_by_text_id) | **GET** /service/text/{TextId}/recipients | Get Text Recipients
15
+ [**get_texts**](TextsApi.md#get_texts) | **GET** /service/texts | List Texts
16
+
17
+
18
+ # **cancel_text_by_id**
19
+ > Object cancel_text_by_id(text_id)
20
+
21
+ Cancel Text
22
+
23
+ Cancel an outgoing text. <br><br> Returns the following if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID ```
24
+
25
+ ### Example
26
+ ```ruby
27
+ # load the gem
28
+ require 'dialmycalls_client'
29
+ # setup authorization
30
+ DialMyCalls.configure do |config|
31
+ # Configure API key authorization: api_key
32
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
33
+ end
34
+
35
+ api_instance = DialMyCalls::TextsApi.new
36
+
37
+ text_id = "text_id_example" # String | TextId
38
+
39
+
40
+ begin
41
+ #Cancel Text
42
+ result = api_instance.cancel_text_by_id(text_id)
43
+ p result
44
+ rescue DialMyCalls::ApiError => e
45
+ puts "Exception when calling TextsApi->cancel_text_by_id: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **text_id** | **String**| TextId |
54
+
55
+ ### Return type
56
+
57
+ **Object**
58
+
59
+ ### Authorization
60
+
61
+ [api_key](../README.md#api_key)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json, application/xml
66
+ - **Accept**: application/json, application/xml
67
+
68
+
69
+
70
+ # **create_text**
71
+ > Object create_text(create_text_parameters)
72
+
73
+ Create Text
74
+
75
+ Create an outgoing text broadcast. <br><br> Returns a service object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"keyword_id\\\": \\\"dfe49537-a0a8-4f4a-98a1-e03df388af11\\\", \\\"send_immediately\\\": true,\\\"messages\\\": [\\\"Testing testing\\\"], \\\"contacts\\\": [{\\\"phone\\\":\\\"1116551235\\\"},{\\\"phone\\\":\\\"1116551234\\\"}]}\" https://$API_KEY@api.dialmycalls.com/2.0/service/text ```
76
+
77
+ ### Example
78
+ ```ruby
79
+ # load the gem
80
+ require 'dialmycalls_client'
81
+ # setup authorization
82
+ DialMyCalls.configure do |config|
83
+ # Configure API key authorization: api_key
84
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
85
+ end
86
+
87
+ api_instance = DialMyCalls::TextsApi.new
88
+
89
+ create_text_parameters = DialMyCalls::CreateTextParameters.new # CreateTextParameters | Request body
90
+
91
+
92
+ begin
93
+ #Create Text
94
+ result = api_instance.create_text(create_text_parameters)
95
+ p result
96
+ rescue DialMyCalls::ApiError => e
97
+ puts "Exception when calling TextsApi->create_text: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ Name | Type | Description | Notes
104
+ ------------- | ------------- | ------------- | -------------
105
+ **create_text_parameters** | [**CreateTextParameters**](CreateTextParameters.md)| Request body |
106
+
107
+ ### Return type
108
+
109
+ **Object**
110
+
111
+ ### Authorization
112
+
113
+ [api_key](../README.md#api_key)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: application/json, application/xml
118
+ - **Accept**: application/json, application/xml
119
+
120
+
121
+
122
+ # **delete_incoming_text_by_id**
123
+ > Object delete_incoming_text_by_id(text_id)
124
+
125
+ Delete Incoming Text
126
+
127
+ Delete a incoming text. <br><br> Returns the following if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID ```
128
+
129
+ ### Example
130
+ ```ruby
131
+ # load the gem
132
+ require 'dialmycalls_client'
133
+ # setup authorization
134
+ DialMyCalls.configure do |config|
135
+ # Configure API key authorization: api_key
136
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
137
+ end
138
+
139
+ api_instance = DialMyCalls::TextsApi.new
140
+
141
+ text_id = "text_id_example" # String | TextId
142
+
143
+
144
+ begin
145
+ #Delete Incoming Text
146
+ result = api_instance.delete_incoming_text_by_id(text_id)
147
+ p result
148
+ rescue DialMyCalls::ApiError => e
149
+ puts "Exception when calling TextsApi->delete_incoming_text_by_id: #{e}"
150
+ end
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ Name | Type | Description | Notes
156
+ ------------- | ------------- | ------------- | -------------
157
+ **text_id** | **String**| TextId |
158
+
159
+ ### Return type
160
+
161
+ **Object**
162
+
163
+ ### Authorization
164
+
165
+ [api_key](../README.md#api_key)
166
+
167
+ ### HTTP request headers
168
+
169
+ - **Content-Type**: application/json, application/xml
170
+ - **Accept**: application/json, application/xml
171
+
172
+
173
+
174
+ # **get_incoming_text_by_id**
175
+ > Object get_incoming_text_by_id(text_id)
176
+
177
+ Get Incoming Text
178
+
179
+ Retrieve a text. <br><br> Returns a Incoming Text object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID ```
180
+
181
+ ### Example
182
+ ```ruby
183
+ # load the gem
184
+ require 'dialmycalls_client'
185
+ # setup authorization
186
+ DialMyCalls.configure do |config|
187
+ # Configure API key authorization: api_key
188
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
189
+ end
190
+
191
+ api_instance = DialMyCalls::TextsApi.new
192
+
193
+ text_id = "text_id_example" # String | TextId
194
+
195
+
196
+ begin
197
+ #Get Incoming Text
198
+ result = api_instance.get_incoming_text_by_id(text_id)
199
+ p result
200
+ rescue DialMyCalls::ApiError => e
201
+ puts "Exception when calling TextsApi->get_incoming_text_by_id: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ Name | Type | Description | Notes
208
+ ------------- | ------------- | ------------- | -------------
209
+ **text_id** | **String**| TextId |
210
+
211
+ ### Return type
212
+
213
+ **Object**
214
+
215
+ ### Authorization
216
+
217
+ [api_key](../README.md#api_key)
218
+
219
+ ### HTTP request headers
220
+
221
+ - **Content-Type**: application/json, application/xml
222
+ - **Accept**: application/json, application/xml
223
+
224
+
225
+
226
+ # **get_incoming_texts**
227
+ > Object get_incoming_texts(opts)
228
+
229
+ List Incoming Texts
230
+
231
+ Retrieve a list of texts. <br><br> Returns a list of Incoming Text objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/texts ```
232
+
233
+ ### Example
234
+ ```ruby
235
+ # load the gem
236
+ require 'dialmycalls_client'
237
+ # setup authorization
238
+ DialMyCalls.configure do |config|
239
+ # Configure API key authorization: api_key
240
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
241
+ end
242
+
243
+ api_instance = DialMyCalls::TextsApi.new
244
+
245
+ opts = {
246
+ range: "range_example" # String | Range (ie \"records=201-300\") of texts requested
247
+ }
248
+
249
+ begin
250
+ #List Incoming Texts
251
+ result = api_instance.get_incoming_texts(opts)
252
+ p result
253
+ rescue DialMyCalls::ApiError => e
254
+ puts "Exception when calling TextsApi->get_incoming_texts: #{e}"
255
+ end
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+ Name | Type | Description | Notes
261
+ ------------- | ------------- | ------------- | -------------
262
+ **range** | **String**| Range (ie \&quot;records&#x3D;201-300\&quot;) of texts requested | [optional]
263
+
264
+ ### Return type
265
+
266
+ **Object**
267
+
268
+ ### Authorization
269
+
270
+ [api_key](../README.md#api_key)
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: application/json, application/xml
275
+ - **Accept**: application/json, application/xml
276
+
277
+
278
+
279
+ # **get_short_codes**
280
+ > Object get_short_codes(opts)
281
+
282
+ List Shortcodes
283
+
284
+ Retrieve a list of shortcodes. <br><br> Returns a list of shortcode objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/shortcodes ```
285
+
286
+ ### Example
287
+ ```ruby
288
+ # load the gem
289
+ require 'dialmycalls_client'
290
+ # setup authorization
291
+ DialMyCalls.configure do |config|
292
+ # Configure API key authorization: api_key
293
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
294
+ end
295
+
296
+ api_instance = DialMyCalls::TextsApi.new
297
+
298
+ opts = {
299
+ range: "range_example" # String | Range (ie \"records=201-300\") of shortcodes requested
300
+ }
301
+
302
+ begin
303
+ #List Shortcodes
304
+ result = api_instance.get_short_codes(opts)
305
+ p result
306
+ rescue DialMyCalls::ApiError => e
307
+ puts "Exception when calling TextsApi->get_short_codes: #{e}"
308
+ end
309
+ ```
310
+
311
+ ### Parameters
312
+
313
+ Name | Type | Description | Notes
314
+ ------------- | ------------- | ------------- | -------------
315
+ **range** | **String**| Range (ie \&quot;records&#x3D;201-300\&quot;) of shortcodes requested | [optional]
316
+
317
+ ### Return type
318
+
319
+ **Object**
320
+
321
+ ### Authorization
322
+
323
+ [api_key](../README.md#api_key)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json, application/xml
328
+ - **Accept**: application/json, application/xml
329
+
330
+
331
+
332
+ # **get_text_by_id**
333
+ > Object get_text_by_id(text_id)
334
+
335
+ Get Text
336
+
337
+ Retrieve a text. <br><br> Returns a service object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID ```
338
+
339
+ ### Example
340
+ ```ruby
341
+ # load the gem
342
+ require 'dialmycalls_client'
343
+ # setup authorization
344
+ DialMyCalls.configure do |config|
345
+ # Configure API key authorization: api_key
346
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
347
+ end
348
+
349
+ api_instance = DialMyCalls::TextsApi.new
350
+
351
+ text_id = "text_id_example" # String | TextId
352
+
353
+
354
+ begin
355
+ #Get Text
356
+ result = api_instance.get_text_by_id(text_id)
357
+ p result
358
+ rescue DialMyCalls::ApiError => e
359
+ puts "Exception when calling TextsApi->get_text_by_id: #{e}"
360
+ end
361
+ ```
362
+
363
+ ### Parameters
364
+
365
+ Name | Type | Description | Notes
366
+ ------------- | ------------- | ------------- | -------------
367
+ **text_id** | **String**| TextId |
368
+
369
+ ### Return type
370
+
371
+ **Object**
372
+
373
+ ### Authorization
374
+
375
+ [api_key](../README.md#api_key)
376
+
377
+ ### HTTP request headers
378
+
379
+ - **Content-Type**: application/json, application/xml
380
+ - **Accept**: application/json, application/xml
381
+
382
+
383
+
384
+ # **get_text_recipients_by_text_id**
385
+ > Object get_text_recipients_by_text_id(text_id, opts)
386
+
387
+ Get Text Recipients
388
+
389
+ Retrieve a list of a text's recipients. <br><br> Returns a list of text recipient objects if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID/recipients ```
390
+
391
+ ### Example
392
+ ```ruby
393
+ # load the gem
394
+ require 'dialmycalls_client'
395
+ # setup authorization
396
+ DialMyCalls.configure do |config|
397
+ # Configure API key authorization: api_key
398
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
399
+ end
400
+
401
+ api_instance = DialMyCalls::TextsApi.new
402
+
403
+ text_id = "text_id_example" # String | TextId
404
+
405
+ opts = {
406
+ range: "range_example" # String | Range (ie \"records=201-300\") of recipients requested
407
+ }
408
+
409
+ begin
410
+ #Get Text Recipients
411
+ result = api_instance.get_text_recipients_by_text_id(text_id, opts)
412
+ p result
413
+ rescue DialMyCalls::ApiError => e
414
+ puts "Exception when calling TextsApi->get_text_recipients_by_text_id: #{e}"
415
+ end
416
+ ```
417
+
418
+ ### Parameters
419
+
420
+ Name | Type | Description | Notes
421
+ ------------- | ------------- | ------------- | -------------
422
+ **text_id** | **String**| TextId |
423
+ **range** | **String**| Range (ie \&quot;records&#x3D;201-300\&quot;) of recipients requested | [optional]
424
+
425
+ ### Return type
426
+
427
+ **Object**
428
+
429
+ ### Authorization
430
+
431
+ [api_key](../README.md#api_key)
432
+
433
+ ### HTTP request headers
434
+
435
+ - **Content-Type**: application/json, application/xml
436
+ - **Accept**: application/json, application/xml
437
+
438
+
439
+
440
+ # **get_texts**
441
+ > Object get_texts(opts)
442
+
443
+ List Texts
444
+
445
+ Retrieve a list of texts. <br><br> Returns a list of service objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/texts ```
446
+
447
+ ### Example
448
+ ```ruby
449
+ # load the gem
450
+ require 'dialmycalls_client'
451
+ # setup authorization
452
+ DialMyCalls.configure do |config|
453
+ # Configure API key authorization: api_key
454
+ config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
455
+ end
456
+
457
+ api_instance = DialMyCalls::TextsApi.new
458
+
459
+ opts = {
460
+ range: "range_example" # String | Range (ie \"records=201-300\") of texts requested
461
+ }
462
+
463
+ begin
464
+ #List Texts
465
+ result = api_instance.get_texts(opts)
466
+ p result
467
+ rescue DialMyCalls::ApiError => e
468
+ puts "Exception when calling TextsApi->get_texts: #{e}"
469
+ end
470
+ ```
471
+
472
+ ### Parameters
473
+
474
+ Name | Type | Description | Notes
475
+ ------------- | ------------- | ------------- | -------------
476
+ **range** | **String**| Range (ie \&quot;records&#x3D;201-300\&quot;) of texts requested | [optional]
477
+
478
+ ### Return type
479
+
480
+ **Object**
481
+
482
+ ### Authorization
483
+
484
+ [api_key](../README.md#api_key)
485
+
486
+ ### HTTP request headers
487
+
488
+ - **Content-Type**: application/json, application/xml
489
+ - **Accept**: application/json, application/xml
490
+
491
+
492
+
@@ -0,0 +1,10 @@
1
+ # DialMyCalls::UpdateAccessAccountByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | The email address for this access account. | [optional]
7
+ **password** | **String** | The password for this access account. Requirements: 8 characters, 1 digit, 1 upper case character. | [optional]
8
+ **name** | **String** | The name for this access account. | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # DialMyCalls::UpdateCallerIdByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | (Required) The caller ID&#39;s name. | [optional]
7
+
8
+
@@ -0,0 +1,14 @@
1
+ # DialMyCalls::UpdateContactByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **firstname** | **String** | The contact&#39;s first name. | [optional]
7
+ **lastname** | **String** | The contact&#39;s last name. | [optional]
8
+ **phone** | **String** | (Required) The contact&#39;s phone number. | [optional]
9
+ **extension** | **String** | The contact&#39;s phone extension. | [optional]
10
+ **email** | **String** | The contact&#39;s email address. | [optional]
11
+ **extra1** | **String** | Miscellaneous data about this contact. | [optional]
12
+ **groups** | **Array&lt;String&gt;** | List of group IDs that this contact should belong to. | [optional]
13
+
14
+
@@ -0,0 +1,8 @@
1
+ # DialMyCalls::UpdateGroupByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | (Required) The contact group&#39;s name. | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # DialMyCalls::UpdateRecordingByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | (Required) The recording&#39;s name. | [optional]
7
+
8
+
@@ -0,0 +1,12 @@
1
+ # DialMyCalls::UpdateVanityNumberByIdParameters
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **call_options** | **Array&lt;String&gt;** | The options to include when the number is called. If an option is not included it will be turned off. Option values should be boolean. Possible values are: &#39;voicemail&#39; (Leave A Message), &#39;ptt&#39; (Push To Talk), &#39;optin&#39; (Opt-In), &#39;repeat&#39; (Repeat Your Message) -- Note: Optout cannot be removed without prior authorization. Please contact customer support for this. | [optional]
7
+ **recording_source** | **String** | Where the recording will be generated from. (specific, lastsent, lastuploaded) | [optional]
8
+ **specific_recording_id** | **String** | Unique identifier for the recording if recording_source is set to specific. | [optional]
9
+ **play_cta** | **BOOLEAN** | Setting this to true our system will play the prompts for keys to be pushed. | [optional]
10
+ **ptt_number_id** | **String** | This is a verified caller id that is on your account. This will be used if PTT option is used. | [optional]
11
+
12
+