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.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +186 -0
- data/dialmycalls_client-1.0.0.gem +0 -0
- data/dialmycalls_client.gemspec +55 -0
- data/docs/Accessaccount.md +12 -0
- data/docs/Account.md +9 -0
- data/docs/AccountsApi.md +324 -0
- data/docs/CallRecipient.md +19 -0
- data/docs/CallerIdsApi.md +386 -0
- data/docs/Callerid.md +13 -0
- data/docs/CallsApi.md +278 -0
- data/docs/Callservice.md +17 -0
- data/docs/Contact.md +18 -0
- data/docs/ContactAttributes.md +11 -0
- data/docs/ContactsApi.md +330 -0
- data/docs/CreateAccessAccountParameters.md +10 -0
- data/docs/CreateCallParameters.md +18 -0
- data/docs/CreateCallerIdParameters.md +9 -0
- data/docs/CreateContactParameters.md +14 -0
- data/docs/CreateGroupParameters.md +8 -0
- data/docs/CreateRecordingByPhoneParameters.md +12 -0
- data/docs/CreateRecordingByUrlParameters.md +9 -0
- data/docs/CreateRecordingParameters.md +11 -0
- data/docs/CreateTextParameters.md +17 -0
- data/docs/CreateUnverifiedCallerIdParameters.md +9 -0
- data/docs/DoNotContactsApi.md +62 -0
- data/docs/Donotcontact.md +12 -0
- data/docs/Group.md +12 -0
- data/docs/GroupsApi.md +277 -0
- data/docs/Identifier.md +8 -0
- data/docs/Incomingtext.md +13 -0
- data/docs/Keyword.md +12 -0
- data/docs/KeywordsApi.md +168 -0
- data/docs/Polling.md +10 -0
- data/docs/PushToListenAgain.md +9 -0
- data/docs/PushToOptOut.md +9 -0
- data/docs/PushToRecord.md +9 -0
- data/docs/PushToTalk.md +12 -0
- data/docs/Recording.md +15 -0
- data/docs/RecordingsApi.md +383 -0
- data/docs/Service.md +16 -0
- data/docs/Shortcode.md +11 -0
- data/docs/TextRecipient.md +13 -0
- data/docs/TextsApi.md +492 -0
- data/docs/UpdateAccessAccountByIdParameters.md +10 -0
- data/docs/UpdateCallerIdByIdParameters.md +8 -0
- data/docs/UpdateContactByIdParameters.md +14 -0
- data/docs/UpdateGroupByIdParameters.md +8 -0
- data/docs/UpdateRecordingByIdParameters.md +8 -0
- data/docs/UpdateVanityNumberByIdParameters.md +12 -0
- data/docs/VanityNumbersApi.md +224 -0
- data/docs/Vanitynumber.md +16 -0
- data/docs/VerifyCallerIdByIdParameters.md +8 -0
- data/git_push.sh +67 -0
- data/lib/dialmycalls_client/api/accounts_api.rb +375 -0
- data/lib/dialmycalls_client/api/caller_ids_api.rb +440 -0
- data/lib/dialmycalls_client/api/calls_api.rb +321 -0
- data/lib/dialmycalls_client/api/contacts_api.rb +379 -0
- data/lib/dialmycalls_client/api/do_not_contacts_api.rb +90 -0
- data/lib/dialmycalls_client/api/groups_api.rb +322 -0
- data/lib/dialmycalls_client/api/keywords_api.rb +204 -0
- data/lib/dialmycalls_client/api/recordings_api.rb +436 -0
- data/lib/dialmycalls_client/api/texts_api.rb +547 -0
- data/lib/dialmycalls_client/api/vanity_numbers_api.rb +265 -0
- data/lib/dialmycalls_client/api_client.rb +379 -0
- data/lib/dialmycalls_client/api_error.rb +47 -0
- data/lib/dialmycalls_client/configuration.rb +214 -0
- data/lib/dialmycalls_client/models/accessaccount.rb +240 -0
- data/lib/dialmycalls_client/models/account.rb +210 -0
- data/lib/dialmycalls_client/models/call_recipient.rb +310 -0
- data/lib/dialmycalls_client/models/callerid.rb +250 -0
- data/lib/dialmycalls_client/models/callservice.rb +290 -0
- data/lib/dialmycalls_client/models/contact.rb +300 -0
- data/lib/dialmycalls_client/models/contact_attributes.rb +230 -0
- data/lib/dialmycalls_client/models/create_access_account_parameters.rb +220 -0
- data/lib/dialmycalls_client/models/create_call_parameters.rb +304 -0
- data/lib/dialmycalls_client/models/create_caller_id_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/create_contact_parameters.rb +262 -0
- data/lib/dialmycalls_client/models/create_group_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/create_recording_by_phone_parameters.rb +240 -0
- data/lib/dialmycalls_client/models/create_recording_by_url_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/create_recording_parameters.rb +230 -0
- data/lib/dialmycalls_client/models/create_text_parameters.rb +294 -0
- data/lib/dialmycalls_client/models/create_unverified_caller_id_parameters.rb +210 -0
- data/lib/dialmycalls_client/models/donotcontact.rb +240 -0
- data/lib/dialmycalls_client/models/group.rb +240 -0
- data/lib/dialmycalls_client/models/identifier.rb +200 -0
- data/lib/dialmycalls_client/models/incomingtext.rb +250 -0
- data/lib/dialmycalls_client/models/keyword.rb +240 -0
- data/lib/dialmycalls_client/models/polling.rb +220 -0
- data/lib/dialmycalls_client/models/push_to_listen_again.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_opt_out.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_record.rb +210 -0
- data/lib/dialmycalls_client/models/push_to_talk.rb +240 -0
- data/lib/dialmycalls_client/models/recording.rb +270 -0
- data/lib/dialmycalls_client/models/service.rb +280 -0
- data/lib/dialmycalls_client/models/shortcode.rb +230 -0
- data/lib/dialmycalls_client/models/text_recipient.rb +250 -0
- data/lib/dialmycalls_client/models/update_access_account_by_id_parameters.rb +220 -0
- data/lib/dialmycalls_client/models/update_caller_id_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_contact_by_id_parameters.rb +262 -0
- data/lib/dialmycalls_client/models/update_group_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_recording_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/models/update_vanity_number_by_id_parameters.rb +242 -0
- data/lib/dialmycalls_client/models/vanitynumber.rb +280 -0
- data/lib/dialmycalls_client/models/verify_caller_id_by_id_parameters.rb +200 -0
- data/lib/dialmycalls_client/version.rb +26 -0
- data/lib/dialmycalls_client.rb +99 -0
- data/spec/api/accounts_api_spec.rb +118 -0
- data/spec/api/caller_ids_api_spec.rb +132 -0
- data/spec/api/calls_api_spec.rb +107 -0
- data/spec/api/contacts_api_spec.rb +119 -0
- data/spec/api/do_not_contacts_api_spec.rb +58 -0
- data/spec/api/groups_api_spec.rb +107 -0
- data/spec/api/keywords_api_spec.rb +82 -0
- data/spec/api/recordings_api_spec.rb +131 -0
- data/spec/api/texts_api_spec.rb +155 -0
- data/spec/api/vanity_numbers_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/accessaccount_spec.rb +77 -0
- data/spec/models/account_spec.rb +59 -0
- data/spec/models/call_recipient_spec.rb +119 -0
- data/spec/models/callerid_spec.rb +83 -0
- data/spec/models/callservice_spec.rb +107 -0
- data/spec/models/contact_attributes_spec.rb +71 -0
- data/spec/models/contact_spec.rb +113 -0
- data/spec/models/create_access_account_parameters_spec.rb +65 -0
- data/spec/models/create_call_parameters_spec.rb +113 -0
- data/spec/models/create_caller_id_parameters_spec.rb +59 -0
- data/spec/models/create_contact_parameters_spec.rb +89 -0
- data/spec/models/create_group_parameters_spec.rb +53 -0
- data/spec/models/create_recording_by_phone_parameters_spec.rb +77 -0
- data/spec/models/create_recording_by_url_parameters_spec.rb +59 -0
- data/spec/models/create_recording_parameters_spec.rb +71 -0
- data/spec/models/create_text_parameters_spec.rb +107 -0
- data/spec/models/create_unverified_caller_id_parameters_spec.rb +59 -0
- data/spec/models/donotcontact_spec.rb +77 -0
- data/spec/models/group_spec.rb +77 -0
- data/spec/models/identifier_spec.rb +53 -0
- data/spec/models/incomingtext_spec.rb +83 -0
- data/spec/models/keyword_spec.rb +77 -0
- data/spec/models/polling_spec.rb +65 -0
- data/spec/models/push_to_listen_again_spec.rb +59 -0
- data/spec/models/push_to_opt_out_spec.rb +59 -0
- data/spec/models/push_to_record_spec.rb +59 -0
- data/spec/models/push_to_talk_spec.rb +77 -0
- data/spec/models/recording_spec.rb +95 -0
- data/spec/models/service_spec.rb +101 -0
- data/spec/models/shortcode_spec.rb +71 -0
- data/spec/models/text_recipient_spec.rb +83 -0
- data/spec/models/update_access_account_by_id_parameters_spec.rb +65 -0
- data/spec/models/update_caller_id_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_contact_by_id_parameters_spec.rb +89 -0
- data/spec/models/update_group_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_recording_by_id_parameters_spec.rb +53 -0
- data/spec/models/update_vanity_number_by_id_parameters_spec.rb +77 -0
- data/spec/models/vanitynumber_spec.rb +101 -0
- data/spec/models/verify_caller_id_by_id_parameters_spec.rb +53 -0
- data/spec/spec_helper.rb +122 -0
- 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 \"records=201-300\") 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 \"records=201-300\") 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 \"records=201-300\") 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 \"records=201-300\") 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,14 @@
|
|
|
1
|
+
# DialMyCalls::UpdateContactByIdParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**firstname** | **String** | The contact's first name. | [optional]
|
|
7
|
+
**lastname** | **String** | The contact's last name. | [optional]
|
|
8
|
+
**phone** | **String** | (Required) The contact's phone number. | [optional]
|
|
9
|
+
**extension** | **String** | The contact's phone extension. | [optional]
|
|
10
|
+
**email** | **String** | The contact's email address. | [optional]
|
|
11
|
+
**extra1** | **String** | Miscellaneous data about this contact. | [optional]
|
|
12
|
+
**groups** | **Array<String>** | List of group IDs that this contact should belong to. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# DialMyCalls::UpdateVanityNumberByIdParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**call_options** | **Array<String>** | 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: 'voicemail' (Leave A Message), 'ptt' (Push To Talk), 'optin' (Opt-In), 'repeat' (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
|
+
|