dialmycalls_client 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,383 @@
|
|
1
|
+
# DialMyCalls::RecordingsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.dialmycalls.com/2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_recording**](RecordingsApi.md#create_recording) | **POST** /recording/tts | Create Recording (Text-to-Speech)
|
8
|
+
[**create_recording_by_phone**](RecordingsApi.md#create_recording_by_phone) | **POST** /recording/phone | Create Recording (Phone)
|
9
|
+
[**create_recording_by_url**](RecordingsApi.md#create_recording_by_url) | **POST** /recording/url | Create Recording (URL)
|
10
|
+
[**delete_recording_by_id**](RecordingsApi.md#delete_recording_by_id) | **DELETE** /recording/{RecordingId} | Delete Recording
|
11
|
+
[**get_recording_by_id**](RecordingsApi.md#get_recording_by_id) | **GET** /recording/{RecordingId} | Get Recording
|
12
|
+
[**get_recordings**](RecordingsApi.md#get_recordings) | **GET** /recordings | List Recordings
|
13
|
+
[**update_recording_by_id**](RecordingsApi.md#update_recording_by_id) | **PUT** /recording/{RecordingId} | Update Recording
|
14
|
+
|
15
|
+
|
16
|
+
# **create_recording**
|
17
|
+
> Object create_recording(create_recording_parameters)
|
18
|
+
|
19
|
+
Create Recording (Text-to-Speech)
|
20
|
+
|
21
|
+
Create a new recording using text-to-speech. <br><br> Returns a recording object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"name\\\": \\\"Test Recording\\\", \\\"gender\\\": \\\"M\\\", \\\"language\\\": \\\"en\\\", \\\"text\\\": \\\"This is just a test.\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/recording/tts ```
|
22
|
+
|
23
|
+
### Example
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'dialmycalls_client'
|
27
|
+
# setup authorization
|
28
|
+
DialMyCalls.configure do |config|
|
29
|
+
# Configure API key authorization: api_key
|
30
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
34
|
+
|
35
|
+
create_recording_parameters = DialMyCalls::CreateRecordingParameters.new # CreateRecordingParameters | Request body
|
36
|
+
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Create Recording (Text-to-Speech)
|
40
|
+
result = api_instance.create_recording(create_recording_parameters)
|
41
|
+
p result
|
42
|
+
rescue DialMyCalls::ApiError => e
|
43
|
+
puts "Exception when calling RecordingsApi->create_recording: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**create_recording_parameters** | [**CreateRecordingParameters**](CreateRecordingParameters.md)| Request body |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
**Object**
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[api_key](../README.md#api_key)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: application/json, application/xml
|
64
|
+
- **Accept**: application/json, application/xml
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# **create_recording_by_phone**
|
69
|
+
> Object create_recording_by_phone(create_recording_by_phone_parameters)
|
70
|
+
|
71
|
+
Create Recording (Phone)
|
72
|
+
|
73
|
+
Create a new recording by phone. <br><br> Returns a recording object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"name\\\": \\\"Test Recording\\\", \\\"phone\\\": \\\"5551234567\\\", \\\"callerid_id\\\": \\\"$CALLERID_ID\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/recording/phone ```
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'dialmycalls_client'
|
79
|
+
# setup authorization
|
80
|
+
DialMyCalls.configure do |config|
|
81
|
+
# Configure API key authorization: api_key
|
82
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
83
|
+
end
|
84
|
+
|
85
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
86
|
+
|
87
|
+
create_recording_by_phone_parameters = DialMyCalls::CreateRecordingByPhoneParameters.new # CreateRecordingByPhoneParameters | Request body
|
88
|
+
|
89
|
+
|
90
|
+
begin
|
91
|
+
#Create Recording (Phone)
|
92
|
+
result = api_instance.create_recording_by_phone(create_recording_by_phone_parameters)
|
93
|
+
p result
|
94
|
+
rescue DialMyCalls::ApiError => e
|
95
|
+
puts "Exception when calling RecordingsApi->create_recording_by_phone: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**create_recording_by_phone_parameters** | [**CreateRecordingByPhoneParameters**](CreateRecordingByPhoneParameters.md)| Request body |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
**Object**
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[api_key](../README.md#api_key)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: application/json, application/xml
|
116
|
+
- **Accept**: application/json, application/xml
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
# **create_recording_by_url**
|
121
|
+
> Object create_recording_by_url(create_recording_by_url_parameters)
|
122
|
+
|
123
|
+
Create Recording (URL)
|
124
|
+
|
125
|
+
Create a new recording from a URL. <br><br> Returns a recording object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"name\\\": \\\"Test Recording\\\", \\\"url\\\": \\\"https://ia700200.us.archive.org/1/items/testmp3testfile/mpthreetest.mp3\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/recording/url ```
|
126
|
+
|
127
|
+
### Example
|
128
|
+
```ruby
|
129
|
+
# load the gem
|
130
|
+
require 'dialmycalls_client'
|
131
|
+
# setup authorization
|
132
|
+
DialMyCalls.configure do |config|
|
133
|
+
# Configure API key authorization: api_key
|
134
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
135
|
+
end
|
136
|
+
|
137
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
138
|
+
|
139
|
+
create_recording_by_url_parameters = DialMyCalls::CreateRecordingByUrlParameters.new # CreateRecordingByUrlParameters | Request body
|
140
|
+
|
141
|
+
|
142
|
+
begin
|
143
|
+
#Create Recording (URL)
|
144
|
+
result = api_instance.create_recording_by_url(create_recording_by_url_parameters)
|
145
|
+
p result
|
146
|
+
rescue DialMyCalls::ApiError => e
|
147
|
+
puts "Exception when calling RecordingsApi->create_recording_by_url: #{e}"
|
148
|
+
end
|
149
|
+
```
|
150
|
+
|
151
|
+
### Parameters
|
152
|
+
|
153
|
+
Name | Type | Description | Notes
|
154
|
+
------------- | ------------- | ------------- | -------------
|
155
|
+
**create_recording_by_url_parameters** | [**CreateRecordingByUrlParameters**](CreateRecordingByUrlParameters.md)| Request body |
|
156
|
+
|
157
|
+
### Return type
|
158
|
+
|
159
|
+
**Object**
|
160
|
+
|
161
|
+
### Authorization
|
162
|
+
|
163
|
+
[api_key](../README.md#api_key)
|
164
|
+
|
165
|
+
### HTTP request headers
|
166
|
+
|
167
|
+
- **Content-Type**: application/json, application/xml
|
168
|
+
- **Accept**: application/json, application/xml
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
# **delete_recording_by_id**
|
173
|
+
> Object delete_recording_by_id(recording_id)
|
174
|
+
|
175
|
+
Delete Recording
|
176
|
+
|
177
|
+
Delete a recording. <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/recording/$RECORDING_ID ```
|
178
|
+
|
179
|
+
### Example
|
180
|
+
```ruby
|
181
|
+
# load the gem
|
182
|
+
require 'dialmycalls_client'
|
183
|
+
# setup authorization
|
184
|
+
DialMyCalls.configure do |config|
|
185
|
+
# Configure API key authorization: api_key
|
186
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
187
|
+
end
|
188
|
+
|
189
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
190
|
+
|
191
|
+
recording_id = "recording_id_example" # String | RecordingId
|
192
|
+
|
193
|
+
|
194
|
+
begin
|
195
|
+
#Delete Recording
|
196
|
+
result = api_instance.delete_recording_by_id(recording_id)
|
197
|
+
p result
|
198
|
+
rescue DialMyCalls::ApiError => e
|
199
|
+
puts "Exception when calling RecordingsApi->delete_recording_by_id: #{e}"
|
200
|
+
end
|
201
|
+
```
|
202
|
+
|
203
|
+
### Parameters
|
204
|
+
|
205
|
+
Name | Type | Description | Notes
|
206
|
+
------------- | ------------- | ------------- | -------------
|
207
|
+
**recording_id** | **String**| RecordingId |
|
208
|
+
|
209
|
+
### Return type
|
210
|
+
|
211
|
+
**Object**
|
212
|
+
|
213
|
+
### Authorization
|
214
|
+
|
215
|
+
[api_key](../README.md#api_key)
|
216
|
+
|
217
|
+
### HTTP request headers
|
218
|
+
|
219
|
+
- **Content-Type**: application/json, application/xml
|
220
|
+
- **Accept**: application/json, application/xml
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
# **get_recording_by_id**
|
225
|
+
> Object get_recording_by_id(recording_id)
|
226
|
+
|
227
|
+
Get Recording
|
228
|
+
|
229
|
+
Retrieve a recording. <br><br> Returns a recording 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/recording/$RECORDING_ID ```
|
230
|
+
|
231
|
+
### Example
|
232
|
+
```ruby
|
233
|
+
# load the gem
|
234
|
+
require 'dialmycalls_client'
|
235
|
+
# setup authorization
|
236
|
+
DialMyCalls.configure do |config|
|
237
|
+
# Configure API key authorization: api_key
|
238
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
239
|
+
end
|
240
|
+
|
241
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
242
|
+
|
243
|
+
recording_id = "recording_id_example" # String | RecordingId
|
244
|
+
|
245
|
+
|
246
|
+
begin
|
247
|
+
#Get Recording
|
248
|
+
result = api_instance.get_recording_by_id(recording_id)
|
249
|
+
p result
|
250
|
+
rescue DialMyCalls::ApiError => e
|
251
|
+
puts "Exception when calling RecordingsApi->get_recording_by_id: #{e}"
|
252
|
+
end
|
253
|
+
```
|
254
|
+
|
255
|
+
### Parameters
|
256
|
+
|
257
|
+
Name | Type | Description | Notes
|
258
|
+
------------- | ------------- | ------------- | -------------
|
259
|
+
**recording_id** | **String**| RecordingId |
|
260
|
+
|
261
|
+
### Return type
|
262
|
+
|
263
|
+
**Object**
|
264
|
+
|
265
|
+
### Authorization
|
266
|
+
|
267
|
+
[api_key](../README.md#api_key)
|
268
|
+
|
269
|
+
### HTTP request headers
|
270
|
+
|
271
|
+
- **Content-Type**: application/json, application/xml
|
272
|
+
- **Accept**: application/json, application/xml
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
# **get_recordings**
|
277
|
+
> Object get_recordings(opts)
|
278
|
+
|
279
|
+
List Recordings
|
280
|
+
|
281
|
+
Retrieve a list of recordings. <br><br> Returns a list of recording objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/recordings ```
|
282
|
+
|
283
|
+
### Example
|
284
|
+
```ruby
|
285
|
+
# load the gem
|
286
|
+
require 'dialmycalls_client'
|
287
|
+
# setup authorization
|
288
|
+
DialMyCalls.configure do |config|
|
289
|
+
# Configure API key authorization: api_key
|
290
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
291
|
+
end
|
292
|
+
|
293
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
294
|
+
|
295
|
+
opts = {
|
296
|
+
range: "range_example" # String | Range (ie \"records=201-300\") of recordings requested
|
297
|
+
}
|
298
|
+
|
299
|
+
begin
|
300
|
+
#List Recordings
|
301
|
+
result = api_instance.get_recordings(opts)
|
302
|
+
p result
|
303
|
+
rescue DialMyCalls::ApiError => e
|
304
|
+
puts "Exception when calling RecordingsApi->get_recordings: #{e}"
|
305
|
+
end
|
306
|
+
```
|
307
|
+
|
308
|
+
### Parameters
|
309
|
+
|
310
|
+
Name | Type | Description | Notes
|
311
|
+
------------- | ------------- | ------------- | -------------
|
312
|
+
**range** | **String**| Range (ie \"records=201-300\") of recordings requested | [optional]
|
313
|
+
|
314
|
+
### Return type
|
315
|
+
|
316
|
+
**Object**
|
317
|
+
|
318
|
+
### Authorization
|
319
|
+
|
320
|
+
[api_key](../README.md#api_key)
|
321
|
+
|
322
|
+
### HTTP request headers
|
323
|
+
|
324
|
+
- **Content-Type**: application/json, application/xml
|
325
|
+
- **Accept**: application/json, application/xml
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
# **update_recording_by_id**
|
330
|
+
> Object update_recording_by_id(update_recording_by_id_parameters, recording_id)
|
331
|
+
|
332
|
+
Update Recording
|
333
|
+
|
334
|
+
Update an existing recording. <br><br> Returns a recording object if a valid identifier was provided and input validation passed, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X PUT -d \"{\\\"name\\\": \\\"Test Recording Updated\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/recording/$RECORDING_ID ```
|
335
|
+
|
336
|
+
### Example
|
337
|
+
```ruby
|
338
|
+
# load the gem
|
339
|
+
require 'dialmycalls_client'
|
340
|
+
# setup authorization
|
341
|
+
DialMyCalls.configure do |config|
|
342
|
+
# Configure API key authorization: api_key
|
343
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = DialMyCalls::RecordingsApi.new
|
347
|
+
|
348
|
+
update_recording_by_id_parameters = DialMyCalls::UpdateRecordingByIdParameters.new # UpdateRecordingByIdParameters | Request body
|
349
|
+
|
350
|
+
recording_id = "recording_id_example" # String | RecordingId
|
351
|
+
|
352
|
+
|
353
|
+
begin
|
354
|
+
#Update Recording
|
355
|
+
result = api_instance.update_recording_by_id(update_recording_by_id_parameters, recording_id)
|
356
|
+
p result
|
357
|
+
rescue DialMyCalls::ApiError => e
|
358
|
+
puts "Exception when calling RecordingsApi->update_recording_by_id: #{e}"
|
359
|
+
end
|
360
|
+
```
|
361
|
+
|
362
|
+
### Parameters
|
363
|
+
|
364
|
+
Name | Type | Description | Notes
|
365
|
+
------------- | ------------- | ------------- | -------------
|
366
|
+
**update_recording_by_id_parameters** | [**UpdateRecordingByIdParameters**](UpdateRecordingByIdParameters.md)| Request body |
|
367
|
+
**recording_id** | **String**| RecordingId |
|
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
|
+
|
data/docs/Service.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# DialMyCalls::Service
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Unique identifier for this service. | [optional]
|
7
|
+
**accessaccount_id** | **String** | Unique identifier for the access account which initiated this if available. | [optional]
|
8
|
+
**name** | **String** | The name of the service. | [optional]
|
9
|
+
**pending_cancel** | **BOOLEAN** | Whether the service has been flagged to be cancelled. | [optional]
|
10
|
+
**credit_cost** | **Float** | The amount of credits required to schedule this service. | [optional]
|
11
|
+
**total_recipients** | **Float** | The amount of recipients for this service. | [optional]
|
12
|
+
**send_at** | **String** | When the service will be sent. | [optional]
|
13
|
+
**created_at** | **String** | When the service was created. | [optional]
|
14
|
+
**updated_at** | **String** | When the service was last updated. | [optional]
|
15
|
+
|
16
|
+
|
data/docs/Shortcode.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# DialMyCalls::Shortcode
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Unique identifier for this shortcode. | [optional]
|
7
|
+
**shortcode** | **String** | The shortcode. | [optional]
|
8
|
+
**created_at** | **String** | When the keyword was created. | [optional]
|
9
|
+
**updated_at** | **String** | When the keyword was last updated. | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# DialMyCalls::TextRecipient
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**firstname** | **String** | The recipient's first name. | [optional]
|
7
|
+
**lastname** | **String** | The recipient's last name. | [optional]
|
8
|
+
**email** | **String** | The recipient's email address. | [optional]
|
9
|
+
**phone** | **String** | The recipient's phone number. | [optional]
|
10
|
+
**status** | **String** | Status of the text. Options: delivered, undeliverable, enroute, unknown, non_mobile, queued | [optional]
|
11
|
+
**successful** | **BOOLEAN** | Whether the text was successful or not. | [optional]
|
12
|
+
|
13
|
+
|