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
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
# DialMyCalls::CallerIdsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dialmycalls.com/2.0*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_caller_id**](CallerIdsApi.md#create_caller_id) | **POST** /callerid | Add Caller ID
|
|
8
|
+
[**create_unverified_caller_id**](CallerIdsApi.md#create_unverified_caller_id) | **POST** /verify/callerid | Add Caller ID (Unverified)
|
|
9
|
+
[**delete_caller_id_by_id**](CallerIdsApi.md#delete_caller_id_by_id) | **DELETE** /callerid/{CalleridId} | Delete Caller ID
|
|
10
|
+
[**get_caller_id_by_id**](CallerIdsApi.md#get_caller_id_by_id) | **GET** /callerid/{CalleridId} | Get Caller ID
|
|
11
|
+
[**get_caller_ids**](CallerIdsApi.md#get_caller_ids) | **GET** /callerids | List Caller IDs
|
|
12
|
+
[**update_caller_id_by_id**](CallerIdsApi.md#update_caller_id_by_id) | **PUT** /callerid/{CalleridId} | Update Caller ID
|
|
13
|
+
[**verify_caller_id_by_id**](CallerIdsApi.md#verify_caller_id_by_id) | **PUT** /verify/callerid/{CalleridId} | Verify Caller ID
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# **create_caller_id**
|
|
17
|
+
> Object create_caller_id(create_caller_id_parameters)
|
|
18
|
+
|
|
19
|
+
Add Caller ID
|
|
20
|
+
|
|
21
|
+
Add a caller ID. <br><br> Returns a caller ID object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"phone\\\": \\\"5555555555\\\", \\\"name\\\": \\\"New Number\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/callerid ```
|
|
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::CallerIdsApi.new
|
|
34
|
+
|
|
35
|
+
create_caller_id_parameters = DialMyCalls::CreateCallerIdParameters.new # CreateCallerIdParameters | Request body
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
#Add Caller ID
|
|
40
|
+
result = api_instance.create_caller_id(create_caller_id_parameters)
|
|
41
|
+
p result
|
|
42
|
+
rescue DialMyCalls::ApiError => e
|
|
43
|
+
puts "Exception when calling CallerIdsApi->create_caller_id: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**create_caller_id_parameters** | [**CreateCallerIdParameters**](CreateCallerIdParameters.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_unverified_caller_id**
|
|
69
|
+
> Object create_unverified_caller_id(create_unverified_caller_id_parameters)
|
|
70
|
+
|
|
71
|
+
Add Caller ID (Unverified)
|
|
72
|
+
|
|
73
|
+
Initiate adding a new caller ID when you need to go through the verification process. You will receive a phone call at the phone number provided and will need to make a subsequent API call with the PIN code that you are provided. <br><br> Returns a caller ID object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"phone\\\": \\\"5555555555\\\", \\\"name\\\": \\\"New Number\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/verify/callerid ```
|
|
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::CallerIdsApi.new
|
|
86
|
+
|
|
87
|
+
create_unverified_caller_id_parameters = DialMyCalls::CreateUnverifiedCallerIdParameters.new # CreateUnverifiedCallerIdParameters | Request body
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
#Add Caller ID (Unverified)
|
|
92
|
+
result = api_instance.create_unverified_caller_id(create_unverified_caller_id_parameters)
|
|
93
|
+
p result
|
|
94
|
+
rescue DialMyCalls::ApiError => e
|
|
95
|
+
puts "Exception when calling CallerIdsApi->create_unverified_caller_id: #{e}"
|
|
96
|
+
end
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
Name | Type | Description | Notes
|
|
102
|
+
------------- | ------------- | ------------- | -------------
|
|
103
|
+
**create_unverified_caller_id_parameters** | [**CreateUnverifiedCallerIdParameters**](CreateUnverifiedCallerIdParameters.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
|
+
# **delete_caller_id_by_id**
|
|
121
|
+
> Object delete_caller_id_by_id(callerid_id)
|
|
122
|
+
|
|
123
|
+
Delete Caller ID
|
|
124
|
+
|
|
125
|
+
Delete a caller ID. <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/callerid/$CALLERID_ID ```
|
|
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::CallerIdsApi.new
|
|
138
|
+
|
|
139
|
+
callerid_id = "callerid_id_example" # String | CalleridId
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
begin
|
|
143
|
+
#Delete Caller ID
|
|
144
|
+
result = api_instance.delete_caller_id_by_id(callerid_id)
|
|
145
|
+
p result
|
|
146
|
+
rescue DialMyCalls::ApiError => e
|
|
147
|
+
puts "Exception when calling CallerIdsApi->delete_caller_id_by_id: #{e}"
|
|
148
|
+
end
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Parameters
|
|
152
|
+
|
|
153
|
+
Name | Type | Description | Notes
|
|
154
|
+
------------- | ------------- | ------------- | -------------
|
|
155
|
+
**callerid_id** | **String**| CalleridId |
|
|
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
|
+
# **get_caller_id_by_id**
|
|
173
|
+
> Object get_caller_id_by_id(callerid_id)
|
|
174
|
+
|
|
175
|
+
Get Caller ID
|
|
176
|
+
|
|
177
|
+
Retrieve a caller ID. <br><br> Returns a caller ID 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/callerid/$CALLERID_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::CallerIdsApi.new
|
|
190
|
+
|
|
191
|
+
callerid_id = "callerid_id_example" # String | CalleridId
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
begin
|
|
195
|
+
#Get Caller ID
|
|
196
|
+
result = api_instance.get_caller_id_by_id(callerid_id)
|
|
197
|
+
p result
|
|
198
|
+
rescue DialMyCalls::ApiError => e
|
|
199
|
+
puts "Exception when calling CallerIdsApi->get_caller_id_by_id: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
Name | Type | Description | Notes
|
|
206
|
+
------------- | ------------- | ------------- | -------------
|
|
207
|
+
**callerid_id** | **String**| CalleridId |
|
|
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_caller_ids**
|
|
225
|
+
> Object get_caller_ids(opts)
|
|
226
|
+
|
|
227
|
+
List Caller IDs
|
|
228
|
+
|
|
229
|
+
Retrieve a list of caller IDs. <br><br> Returns a list of caller ID objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/callerids ```
|
|
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::CallerIdsApi.new
|
|
242
|
+
|
|
243
|
+
opts = {
|
|
244
|
+
range: "range_example" # String | Range (ie \"records=201-300\") of callerids requested
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
begin
|
|
248
|
+
#List Caller IDs
|
|
249
|
+
result = api_instance.get_caller_ids(opts)
|
|
250
|
+
p result
|
|
251
|
+
rescue DialMyCalls::ApiError => e
|
|
252
|
+
puts "Exception when calling CallerIdsApi->get_caller_ids: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Parameters
|
|
257
|
+
|
|
258
|
+
Name | Type | Description | Notes
|
|
259
|
+
------------- | ------------- | ------------- | -------------
|
|
260
|
+
**range** | **String**| Range (ie \"records=201-300\") of callerids requested | [optional]
|
|
261
|
+
|
|
262
|
+
### Return type
|
|
263
|
+
|
|
264
|
+
**Object**
|
|
265
|
+
|
|
266
|
+
### Authorization
|
|
267
|
+
|
|
268
|
+
[api_key](../README.md#api_key)
|
|
269
|
+
|
|
270
|
+
### HTTP request headers
|
|
271
|
+
|
|
272
|
+
- **Content-Type**: application/json, application/xml
|
|
273
|
+
- **Accept**: application/json, application/xml
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# **update_caller_id_by_id**
|
|
278
|
+
> Object update_caller_id_by_id(update_caller_id_by_id_parameters, callerid_id)
|
|
279
|
+
|
|
280
|
+
Update Caller ID
|
|
281
|
+
|
|
282
|
+
Update an existing caller ID. <br><br> Returns a caller ID 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\\\": \\\"New Number Updated\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/callerid/$CALLERID_ID ```
|
|
283
|
+
|
|
284
|
+
### Example
|
|
285
|
+
```ruby
|
|
286
|
+
# load the gem
|
|
287
|
+
require 'dialmycalls_client'
|
|
288
|
+
# setup authorization
|
|
289
|
+
DialMyCalls.configure do |config|
|
|
290
|
+
# Configure API key authorization: api_key
|
|
291
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
api_instance = DialMyCalls::CallerIdsApi.new
|
|
295
|
+
|
|
296
|
+
update_caller_id_by_id_parameters = DialMyCalls::UpdateCallerIdByIdParameters.new # UpdateCallerIdByIdParameters | Request body
|
|
297
|
+
|
|
298
|
+
callerid_id = "callerid_id_example" # String | CalleridId
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
begin
|
|
302
|
+
#Update Caller ID
|
|
303
|
+
result = api_instance.update_caller_id_by_id(update_caller_id_by_id_parameters, callerid_id)
|
|
304
|
+
p result
|
|
305
|
+
rescue DialMyCalls::ApiError => e
|
|
306
|
+
puts "Exception when calling CallerIdsApi->update_caller_id_by_id: #{e}"
|
|
307
|
+
end
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Parameters
|
|
311
|
+
|
|
312
|
+
Name | Type | Description | Notes
|
|
313
|
+
------------- | ------------- | ------------- | -------------
|
|
314
|
+
**update_caller_id_by_id_parameters** | [**UpdateCallerIdByIdParameters**](UpdateCallerIdByIdParameters.md)| Request body |
|
|
315
|
+
**callerid_id** | **String**| CalleridId |
|
|
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
|
+
# **verify_caller_id_by_id**
|
|
333
|
+
> Object verify_caller_id_by_id(verify_caller_id_by_id_parameters, callerid_id)
|
|
334
|
+
|
|
335
|
+
Verify Caller ID
|
|
336
|
+
|
|
337
|
+
Verify a new caller ID. <br><br> Returns a caller ID object if a valid identifier was provided, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"phone\\\": \\\"5555555555\\\", \\\"name\\\": \\\"New Number\\\"}\" https://$API_KEY@api.dialmycalls.com/2.0/verify/callerid/$CALLERID_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::CallerIdsApi.new
|
|
350
|
+
|
|
351
|
+
verify_caller_id_by_id_parameters = DialMyCalls::VerifyCallerIdByIdParameters.new # VerifyCallerIdByIdParameters | Request body
|
|
352
|
+
|
|
353
|
+
callerid_id = "callerid_id_example" # String | CalleridId
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
begin
|
|
357
|
+
#Verify Caller ID
|
|
358
|
+
result = api_instance.verify_caller_id_by_id(verify_caller_id_by_id_parameters, callerid_id)
|
|
359
|
+
p result
|
|
360
|
+
rescue DialMyCalls::ApiError => e
|
|
361
|
+
puts "Exception when calling CallerIdsApi->verify_caller_id_by_id: #{e}"
|
|
362
|
+
end
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Parameters
|
|
366
|
+
|
|
367
|
+
Name | Type | Description | Notes
|
|
368
|
+
------------- | ------------- | ------------- | -------------
|
|
369
|
+
**verify_caller_id_by_id_parameters** | [**VerifyCallerIdByIdParameters**](VerifyCallerIdByIdParameters.md)| Request body |
|
|
370
|
+
**callerid_id** | **String**| CalleridId |
|
|
371
|
+
|
|
372
|
+
### Return type
|
|
373
|
+
|
|
374
|
+
**Object**
|
|
375
|
+
|
|
376
|
+
### Authorization
|
|
377
|
+
|
|
378
|
+
[api_key](../README.md#api_key)
|
|
379
|
+
|
|
380
|
+
### HTTP request headers
|
|
381
|
+
|
|
382
|
+
- **Content-Type**: application/json, application/xml
|
|
383
|
+
- **Accept**: application/json, application/xml
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
data/docs/Callerid.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# DialMyCalls::Callerid
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | Unique identifier for this caller ID. | [optional]
|
|
7
|
+
**name** | **String** | The name of the caller ID. | [optional]
|
|
8
|
+
**phone** | **String** | The caller ID phone number. | [optional]
|
|
9
|
+
**approved** | **BOOLEAN** | Whether this caller ID is approved for use. | [optional]
|
|
10
|
+
**created_at** | **String** | When the caller id was created. | [optional]
|
|
11
|
+
**updated_at** | **String** | When the caller id was last updated. | [optional]
|
|
12
|
+
|
|
13
|
+
|
data/docs/CallsApi.md
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# DialMyCalls::CallsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dialmycalls.com/2.0*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**cancel_call_by_id**](CallsApi.md#cancel_call_by_id) | **DELETE** /service/call/{CallId} | Cancel Call
|
|
8
|
+
[**create_call**](CallsApi.md#create_call) | **POST** /service/call | Create Call
|
|
9
|
+
[**get_call_by_id**](CallsApi.md#get_call_by_id) | **GET** /service/call/{CallId} | Get Call
|
|
10
|
+
[**get_call_recipients_by_call_id**](CallsApi.md#get_call_recipients_by_call_id) | **GET** /service/call/{CallId}/recipients | Get Call Recipients
|
|
11
|
+
[**get_calls**](CallsApi.md#get_calls) | **GET** /service/calls | List Calls
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# **cancel_call_by_id**
|
|
15
|
+
> Object cancel_call_by_id(call_id)
|
|
16
|
+
|
|
17
|
+
Cancel Call
|
|
18
|
+
|
|
19
|
+
Cancel an outgoing call. <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/call/$CALL_ID ```
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
```ruby
|
|
23
|
+
# load the gem
|
|
24
|
+
require 'dialmycalls_client'
|
|
25
|
+
# setup authorization
|
|
26
|
+
DialMyCalls.configure do |config|
|
|
27
|
+
# Configure API key authorization: api_key
|
|
28
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = DialMyCalls::CallsApi.new
|
|
32
|
+
|
|
33
|
+
call_id = "call_id_example" # String | CallId
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Cancel Call
|
|
38
|
+
result = api_instance.cancel_call_by_id(call_id)
|
|
39
|
+
p result
|
|
40
|
+
rescue DialMyCalls::ApiError => e
|
|
41
|
+
puts "Exception when calling CallsApi->cancel_call_by_id: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
Name | Type | Description | Notes
|
|
48
|
+
------------- | ------------- | ------------- | -------------
|
|
49
|
+
**call_id** | **String**| CallId |
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**Object**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[api_key](../README.md#api_key)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json, application/xml
|
|
62
|
+
- **Accept**: application/json, application/xml
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# **create_call**
|
|
67
|
+
> Object create_call(create_call_parameters)
|
|
68
|
+
|
|
69
|
+
Create Call
|
|
70
|
+
|
|
71
|
+
Create an outgoing call broadcast. <br><br> Returns a call service object on success, and returns an error otherwise. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X POST -d \"{\\\"name\\\": \\\"Test\\\", \\\"callerid_id\\\": \\\"8bc6748e-d8a0-11e4-8b2d-00163e603cea\\\", \\\"recording_id\\\": \\\"079ff28a-1b75-11e5-88eb-00163e603cea\\\", \\\"send_immediately\\\": true, \\\"use_amd\\\": true, \\\"contacts\\\": [{\\\"phone\\\":\\\"1116551235\\\"},{\\\"phone\\\":\\\"1116551234\\\"}]}\" https://$API_KEY@api.dialmycalls.com/2.0/service/call ```
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
```ruby
|
|
75
|
+
# load the gem
|
|
76
|
+
require 'dialmycalls_client'
|
|
77
|
+
# setup authorization
|
|
78
|
+
DialMyCalls.configure do |config|
|
|
79
|
+
# Configure API key authorization: api_key
|
|
80
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
api_instance = DialMyCalls::CallsApi.new
|
|
84
|
+
|
|
85
|
+
create_call_parameters = DialMyCalls::CreateCallParameters.new # CreateCallParameters | Request body
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
begin
|
|
89
|
+
#Create Call
|
|
90
|
+
result = api_instance.create_call(create_call_parameters)
|
|
91
|
+
p result
|
|
92
|
+
rescue DialMyCalls::ApiError => e
|
|
93
|
+
puts "Exception when calling CallsApi->create_call: #{e}"
|
|
94
|
+
end
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
Name | Type | Description | Notes
|
|
100
|
+
------------- | ------------- | ------------- | -------------
|
|
101
|
+
**create_call_parameters** | [**CreateCallParameters**](CreateCallParameters.md)| Request body |
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**Object**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[api_key](../README.md#api_key)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: application/json, application/xml
|
|
114
|
+
- **Accept**: application/json, application/xml
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# **get_call_by_id**
|
|
119
|
+
> Object get_call_by_id(call_id)
|
|
120
|
+
|
|
121
|
+
Get Call
|
|
122
|
+
|
|
123
|
+
Retrieve a call. <br><br> Returns a call 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/call/$CALL_ID ```
|
|
124
|
+
|
|
125
|
+
### Example
|
|
126
|
+
```ruby
|
|
127
|
+
# load the gem
|
|
128
|
+
require 'dialmycalls_client'
|
|
129
|
+
# setup authorization
|
|
130
|
+
DialMyCalls.configure do |config|
|
|
131
|
+
# Configure API key authorization: api_key
|
|
132
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
api_instance = DialMyCalls::CallsApi.new
|
|
136
|
+
|
|
137
|
+
call_id = "call_id_example" # String | CallId
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
begin
|
|
141
|
+
#Get Call
|
|
142
|
+
result = api_instance.get_call_by_id(call_id)
|
|
143
|
+
p result
|
|
144
|
+
rescue DialMyCalls::ApiError => e
|
|
145
|
+
puts "Exception when calling CallsApi->get_call_by_id: #{e}"
|
|
146
|
+
end
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
150
|
+
|
|
151
|
+
Name | Type | Description | Notes
|
|
152
|
+
------------- | ------------- | ------------- | -------------
|
|
153
|
+
**call_id** | **String**| CallId |
|
|
154
|
+
|
|
155
|
+
### Return type
|
|
156
|
+
|
|
157
|
+
**Object**
|
|
158
|
+
|
|
159
|
+
### Authorization
|
|
160
|
+
|
|
161
|
+
[api_key](../README.md#api_key)
|
|
162
|
+
|
|
163
|
+
### HTTP request headers
|
|
164
|
+
|
|
165
|
+
- **Content-Type**: application/json, application/xml
|
|
166
|
+
- **Accept**: application/json, application/xml
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
# **get_call_recipients_by_call_id**
|
|
171
|
+
> Object get_call_recipients_by_call_id(call_id, opts)
|
|
172
|
+
|
|
173
|
+
Get Call Recipients
|
|
174
|
+
|
|
175
|
+
Retrieve a list of a call's recipients. <br><br> Returns a list of call 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/call/$CALL_ID/recipients ```
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
```ruby
|
|
179
|
+
# load the gem
|
|
180
|
+
require 'dialmycalls_client'
|
|
181
|
+
# setup authorization
|
|
182
|
+
DialMyCalls.configure do |config|
|
|
183
|
+
# Configure API key authorization: api_key
|
|
184
|
+
config.api_key['X-Auth-ApiKey'] = 'YOUR API KEY'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
api_instance = DialMyCalls::CallsApi.new
|
|
188
|
+
|
|
189
|
+
call_id = "call_id_example" # String | CallId
|
|
190
|
+
|
|
191
|
+
opts = {
|
|
192
|
+
range: "range_example" # String | Range (ie \"records=201-300\") of recipients requested
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
begin
|
|
196
|
+
#Get Call Recipients
|
|
197
|
+
result = api_instance.get_call_recipients_by_call_id(call_id, opts)
|
|
198
|
+
p result
|
|
199
|
+
rescue DialMyCalls::ApiError => e
|
|
200
|
+
puts "Exception when calling CallsApi->get_call_recipients_by_call_id: #{e}"
|
|
201
|
+
end
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Parameters
|
|
205
|
+
|
|
206
|
+
Name | Type | Description | Notes
|
|
207
|
+
------------- | ------------- | ------------- | -------------
|
|
208
|
+
**call_id** | **String**| CallId |
|
|
209
|
+
**range** | **String**| Range (ie \"records=201-300\") of recipients requested | [optional]
|
|
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_calls**
|
|
227
|
+
> Object get_calls(opts)
|
|
228
|
+
|
|
229
|
+
List Calls
|
|
230
|
+
|
|
231
|
+
Retrieve a list of calls. <br><br> Returns a list of call service objects. <br><br> ``` curl -i -H \"Content-Type: application/json\" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/calls ```
|
|
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::CallsApi.new
|
|
244
|
+
|
|
245
|
+
opts = {
|
|
246
|
+
range: "range_example" # String | Range (ie \"records=201-300\") of calls requested
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
begin
|
|
250
|
+
#List Calls
|
|
251
|
+
result = api_instance.get_calls(opts)
|
|
252
|
+
p result
|
|
253
|
+
rescue DialMyCalls::ApiError => e
|
|
254
|
+
puts "Exception when calling CallsApi->get_calls: #{e}"
|
|
255
|
+
end
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Parameters
|
|
259
|
+
|
|
260
|
+
Name | Type | Description | Notes
|
|
261
|
+
------------- | ------------- | ------------- | -------------
|
|
262
|
+
**range** | **String**| Range (ie \"records=201-300\") of calls 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
|
+
|
data/docs/Callservice.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# DialMyCalls::Callservice
|
|
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
|
+
**recording_id** | **String** | Unique identifier for the recording. | [optional]
|
|
10
|
+
**pending_cancel** | **BOOLEAN** | Whether the service has been flagged to be cancelled. | [optional]
|
|
11
|
+
**credit_cost** | **Float** | The amount of credits required to schedule this service. | [optional]
|
|
12
|
+
**total_recipients** | **Float** | The amount of recipients for this service. | [optional]
|
|
13
|
+
**send_at** | **String** | When the service will be sent. | [optional]
|
|
14
|
+
**created_at** | **String** | When the service was created. | [optional]
|
|
15
|
+
**updated_at** | **String** | When the service was last updated. | [optional]
|
|
16
|
+
|
|
17
|
+
|