freeclimb 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +82 -0
- data/README.md +238 -0
- data/Rakefile +10 -0
- data/docs/AccountRequest.md +21 -0
- data/docs/AccountResult.md +37 -0
- data/docs/AccountResultAllOf.md +29 -0
- data/docs/ApplicationList.md +31 -0
- data/docs/ApplicationListAllOf.md +17 -0
- data/docs/ApplicationRequest.md +31 -0
- data/docs/ApplicationResult.md +41 -0
- data/docs/ApplicationResultAllOf.md +33 -0
- data/docs/AvailableNumber.md +27 -0
- data/docs/AvailableNumberList.md +31 -0
- data/docs/AvailableNumberListAllOf.md +17 -0
- data/docs/BuyIncomingNumberRequest.md +23 -0
- data/docs/CallList.md +31 -0
- data/docs/CallListAllOf.md +17 -0
- data/docs/CallResult.md +53 -0
- data/docs/CallResultAllOf.md +45 -0
- data/docs/ConferenceList.md +31 -0
- data/docs/ConferenceListAllOf.md +17 -0
- data/docs/ConferenceParticipantList.md +31 -0
- data/docs/ConferenceParticipantListAllOf.md +17 -0
- data/docs/ConferenceParticipantResult.md +35 -0
- data/docs/ConferenceParticipantResultAllOf.md +27 -0
- data/docs/ConferenceResult.md +43 -0
- data/docs/ConferenceResultAllOf.md +35 -0
- data/docs/CreateConferenceRequest.md +27 -0
- data/docs/DefaultApi.md +2504 -0
- data/docs/DequeueMemberRequest.md +17 -0
- data/docs/FilterLogsRequest.md +19 -0
- data/docs/IncomingNumberList.md +31 -0
- data/docs/IncomingNumberListAllOf.md +17 -0
- data/docs/IncomingNumberRequest.md +21 -0
- data/docs/IncomingNumberResult.md +41 -0
- data/docs/IncomingNumberResultAllOf.md +33 -0
- data/docs/LogList.md +31 -0
- data/docs/LogListAllOf.md +17 -0
- data/docs/LogResult.md +29 -0
- data/docs/MakeCallRequest.md +33 -0
- data/docs/MessageRequest.md +35 -0
- data/docs/MessageRequestAllOf.md +27 -0
- data/docs/MessageResult.md +39 -0
- data/docs/MessageResultAllOf.md +31 -0
- data/docs/MessagesList.md +31 -0
- data/docs/MessagesListAllOf.md +17 -0
- data/docs/MutableResourceModel.md +23 -0
- data/docs/PaginationModel.md +29 -0
- data/docs/Percl.md +697 -0
- data/docs/QueueList.md +31 -0
- data/docs/QueueListAllOf.md +17 -0
- data/docs/QueueMember.md +25 -0
- data/docs/QueueMemberList.md +31 -0
- data/docs/QueueMemberListAllOf.md +17 -0
- data/docs/QueueRequest.md +21 -0
- data/docs/QueueResult.md +37 -0
- data/docs/QueueResultAllOf.md +29 -0
- data/docs/RecordingList.md +31 -0
- data/docs/RecordingListAllOf.md +17 -0
- data/docs/RecordingResult.md +33 -0
- data/docs/RecordingResultAllOf.md +25 -0
- data/docs/UpdateCallRequest.md +19 -0
- data/docs/UpdateConferenceParticipantRequest.md +21 -0
- data/docs/UpdateConferenceRequest.md +23 -0
- data/freeclimb.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/freeclimb.rb +99 -0
- data/lib/freeclimb/api/default_api.rb +2845 -0
- data/lib/freeclimb/api_client.rb +386 -0
- data/lib/freeclimb/api_error.rb +57 -0
- data/lib/freeclimb/configuration.rb +248 -0
- data/lib/freeclimb/models/account_request.rb +227 -0
- data/lib/freeclimb/models/account_result.rb +349 -0
- data/lib/freeclimb/models/account_result_all_of.rb +301 -0
- data/lib/freeclimb/models/application_list.rb +286 -0
- data/lib/freeclimb/models/application_list_all_of.rb +208 -0
- data/lib/freeclimb/models/application_request.rb +277 -0
- data/lib/freeclimb/models/application_result.rb +335 -0
- data/lib/freeclimb/models/application_result_all_of.rb +287 -0
- data/lib/freeclimb/models/available_number.rb +257 -0
- data/lib/freeclimb/models/available_number_list.rb +286 -0
- data/lib/freeclimb/models/available_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/buy_incoming_number_request.rb +242 -0
- data/lib/freeclimb/models/call_list.rb +286 -0
- data/lib/freeclimb/models/call_list_all_of.rb +208 -0
- data/lib/freeclimb/models/call_result.rb +429 -0
- data/lib/freeclimb/models/call_result_all_of.rb +381 -0
- data/lib/freeclimb/models/conference_list.rb +286 -0
- data/lib/freeclimb/models/conference_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_list.rb +286 -0
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +208 -0
- data/lib/freeclimb/models/conference_participant_result.rb +305 -0
- data/lib/freeclimb/models/conference_participant_result_all_of.rb +257 -0
- data/lib/freeclimb/models/conference_result.rb +391 -0
- data/lib/freeclimb/models/conference_result_all_of.rb +343 -0
- data/lib/freeclimb/models/create_conference_request.rb +293 -0
- data/lib/freeclimb/models/dequeue_member_request.rb +207 -0
- data/lib/freeclimb/models/filter_logs_request.rb +222 -0
- data/lib/freeclimb/models/incoming_number_list.rb +286 -0
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +208 -0
- data/lib/freeclimb/models/incoming_number_request.rb +227 -0
- data/lib/freeclimb/models/incoming_number_result.rb +335 -0
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +287 -0
- data/lib/freeclimb/models/log_list.rb +286 -0
- data/lib/freeclimb/models/log_list_all_of.rb +208 -0
- data/lib/freeclimb/models/log_result.rb +301 -0
- data/lib/freeclimb/models/make_call_request.rb +302 -0
- data/lib/freeclimb/models/message_request.rb +320 -0
- data/lib/freeclimb/models/message_request_all_of.rb +272 -0
- data/lib/freeclimb/models/message_result.rb +359 -0
- data/lib/freeclimb/models/message_result_all_of.rb +311 -0
- data/lib/freeclimb/models/messages_list.rb +287 -0
- data/lib/freeclimb/models/messages_list_all_of.rb +209 -0
- data/lib/freeclimb/models/mutable_resource_model.rb +237 -0
- data/lib/freeclimb/models/pagination_model.rb +267 -0
- data/lib/freeclimb/models/queue_list.rb +286 -0
- data/lib/freeclimb/models/queue_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_member.rb +247 -0
- data/lib/freeclimb/models/queue_member_list.rb +286 -0
- data/lib/freeclimb/models/queue_member_list_all_of.rb +208 -0
- data/lib/freeclimb/models/queue_request.rb +227 -0
- data/lib/freeclimb/models/queue_result.rb +315 -0
- data/lib/freeclimb/models/queue_result_all_of.rb +267 -0
- data/lib/freeclimb/models/recording_list.rb +286 -0
- data/lib/freeclimb/models/recording_list_all_of.rb +208 -0
- data/lib/freeclimb/models/recording_result.rb +295 -0
- data/lib/freeclimb/models/recording_result_all_of.rb +247 -0
- data/lib/freeclimb/models/update_call_request.rb +256 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +227 -0
- data/lib/freeclimb/models/update_conference_request.rb +273 -0
- data/lib/freeclimb/version.rb +15 -0
- data/lib/percl/calls.rb +43 -0
- data/lib/percl/conference_participants.rb +40 -0
- data/lib/percl/conferences.rb +21 -0
- data/lib/percl/ivr.rb +63 -0
- data/lib/percl/jsonable.rb +23 -0
- data/lib/percl/percl.rb +29 -0
- data/lib/percl/queue_members.rb +15 -0
- data/lib/percl/recordings.rb +15 -0
- data/lib/percl/sms.rb +11 -0
- data/spec/api/default_api_spec.rb +1151 -0
- data/spec/api/web_mocks.rb +473 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +34 -0
- data/spec/models/account_request_spec.rb +33 -0
- data/spec/models/account_result_spec.rb +33 -0
- data/spec/models/application_list_spec.rb +33 -0
- data/spec/models/application_request_spec.rb +33 -0
- data/spec/models/application_result_spec.rb +33 -0
- data/spec/models/available_number_list_spec.rb +34 -0
- data/spec/models/available_number_spec.rb +33 -0
- data/spec/models/buy_incoming_number_request_spec.rb +33 -0
- data/spec/models/call_list_spec.rb +34 -0
- data/spec/models/call_result_spec.rb +34 -0
- data/spec/models/conference_list_spec.rb +33 -0
- data/spec/models/conference_participant_list_spec.rb +33 -0
- data/spec/models/conference_participant_result_spec.rb +33 -0
- data/spec/models/conference_result_spec.rb +34 -0
- data/spec/models/create_conference_request_spec.rb +34 -0
- data/spec/models/dequeue_member_request_spec.rb +34 -0
- data/spec/models/filter_logs_request_spec.rb +33 -0
- data/spec/models/incoming_number_list_spec.rb +34 -0
- data/spec/models/incoming_number_request_spec.rb +33 -0
- data/spec/models/incoming_number_result_spec.rb +34 -0
- data/spec/models/log_list_spec.rb +33 -0
- data/spec/models/log_result_spec.rb +33 -0
- data/spec/models/make_call_request_spec.rb +33 -0
- data/spec/models/message_request_spec.rb +34 -0
- data/spec/models/message_result_spec.rb +33 -0
- data/spec/models/messages_list_spec.rb +33 -0
- data/spec/models/mutable_resource_model_spec.rb +34 -0
- data/spec/models/pagination_model_spec.rb +33 -0
- data/spec/models/queue_list_spec.rb +34 -0
- data/spec/models/queue_member_list_spec.rb +33 -0
- data/spec/models/queue_member_spec.rb +34 -0
- data/spec/models/queue_request_spec.rb +34 -0
- data/spec/models/queue_result_spec.rb +33 -0
- data/spec/models/recording_list_spec.rb +33 -0
- data/spec/models/recording_result_spec.rb +33 -0
- data/spec/models/update_call_request_spec.rb +33 -0
- data/spec/models/update_conference_participant_request_spec.rb +33 -0
- data/spec/models/update_conference_request_spec.rb +33 -0
- data/spec/percl/calls_spec.rb +111 -0
- data/spec/percl/conference_participant_spec.rb +96 -0
- data/spec/percl/conference_spec.rb +46 -0
- data/spec/percl/ivr_spec.rb +155 -0
- data/spec/percl/jsonable_spec.rb +28 -0
- data/spec/percl/percl_spec.rb +31 -0
- data/spec/percl/queue_members_spec.rb +35 -0
- data/spec/percl/recordings_spec.rb +32 -0
- data/spec/percl/sms_spec.rb +29 -0
- data/spec/spec_helper.rb +114 -0
- metadata +355 -0
@@ -0,0 +1,473 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
|
4
|
+
module ResponseMocks
|
5
|
+
INCOMING_PHONE_NUMBER = '
|
6
|
+
{
|
7
|
+
"uri":"/Accounts/{accountId}/IncomingPhoneNumbers/PN3bf967f7e197abed0a8b4f163f0ee62688881364",
|
8
|
+
"dateCreated":"Thu, 13 Oct 2019 17:16:05 GMT",
|
9
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:16:10 GMT",
|
10
|
+
"revision":1,
|
11
|
+
"phoneNumberId":"PN3bf967f7e197abed0a8b4f163f0ee62688881364",
|
12
|
+
"accountId":"{account_id}",
|
13
|
+
"applicationId":"APfc31da0abae9482a9da39751ea4ef69ebde32dfe",
|
14
|
+
"phoneNumber":"+14135513872",
|
15
|
+
"alias":"(413) 551-3872",
|
16
|
+
"region":"MA",
|
17
|
+
"country":"US",
|
18
|
+
"voiceEnabled":true,
|
19
|
+
"smsEnabled":true
|
20
|
+
}'
|
21
|
+
|
22
|
+
CONFERENCE_RESULT = '
|
23
|
+
{
|
24
|
+
"uri":"/Accounts/{account_id}/Conferences/CF63e537ae01efa3bb10934b0d7fdb4d5057617a3c",
|
25
|
+
"revision":1,
|
26
|
+
"dateCreated":"Thu, 13 Oct 2019 18:04:24 GMT",
|
27
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:04:24 GMT",
|
28
|
+
"conferenceId":"CF63e537ae01efa3bb10934b0d7fdb4d5057617a3c",
|
29
|
+
"accountId":"{account_id}",
|
30
|
+
"alias":"test",
|
31
|
+
"playBeep":"always",
|
32
|
+
"record":false,
|
33
|
+
"status":"empty",
|
34
|
+
"waitUrl":"http://myapp/waitaudio",
|
35
|
+
"statusCallbackUrl":"http://myserver/confstatuscallback",
|
36
|
+
"subresourceUris":{
|
37
|
+
"participants":"/Accounts/{account_id}/Conferences/CF63e537ae01efa3bb10934b0d7fdb4d5057617a3c/Participants",
|
38
|
+
"recordings":"/Accounts/{account_id}/Conferences/CF63e537ae01efa3bb10934b0d7fdb4d5057617a3c/Recordings"
|
39
|
+
}
|
40
|
+
}'
|
41
|
+
|
42
|
+
QUEUE_RESULT = '{
|
43
|
+
"uri":"/Accounts/{account_id}/Queues/QUc82cf641d98e785b8e65a894e4563a899e52f000",
|
44
|
+
"dateCreated":"Thu, 13 Oct 2019 18:28:01 GMT",
|
45
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:28:01 GMT",
|
46
|
+
"revision":1,
|
47
|
+
"accountId":"{account_id}",
|
48
|
+
"queueId":"QUc82cf641d98e785b8e65a894e4563a899e52f000",
|
49
|
+
"alias":"the queue",
|
50
|
+
"maxSize":200,
|
51
|
+
"currentSize":1,
|
52
|
+
"averageWaitTime":0,
|
53
|
+
"subresourceUris":{
|
54
|
+
"members":"/Accounts/{account_id}/Queues/QUc82cf641d98e785b8e65a894e4563a899e52f000/Members"
|
55
|
+
}
|
56
|
+
}'
|
57
|
+
|
58
|
+
APPLICATION_RESULT = '{
|
59
|
+
"uri":"/Accounts/{account_id}/Applications/APfc31da0abae9482a9da39751ea4ef69ebde32dfe",
|
60
|
+
"revision":1,
|
61
|
+
"dateCreated":"Thu, 13 Oct 2019 17:46:28 GMT",
|
62
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:46:28 GMT",
|
63
|
+
"applicationId":"APfc31da0abae9482a9da39751ea4ef69ebde32dfe",
|
64
|
+
"accountId":"{account_id}",
|
65
|
+
"alias":"SampleApplication",
|
66
|
+
"voiceUrl":"http://myapp.com/inbound-call",
|
67
|
+
"voiceFallbackUrl":"http://myapp.com/inbound-call-fallback",
|
68
|
+
"callConnectUrl":"http://myapp.com/outbound-connect",
|
69
|
+
"statusCallbackUrl":"http://myapp.com/call-status",
|
70
|
+
"smsUrl":"http://myapp.com/inbound-sms",
|
71
|
+
"smsFallbackUrl":"http://myapp.com/inbound-sms-fallback"
|
72
|
+
}'
|
73
|
+
|
74
|
+
QUEUE_MEMBER_RESULT = '{
|
75
|
+
"uri":"/Accounts/{account_id}/Queues/QUe12f9737b02c2348d5a793074b34b3b57a2ecf20/Members/CA4969498ffd3b811acb8ab7f7d6d2cd5ab40f5140",
|
76
|
+
"callId":"CA4969498ffd3b811acb8ab7f7d6d2cd5ab40f5140",
|
77
|
+
"waitTime":15,
|
78
|
+
"position":1,
|
79
|
+
"dateEnqueued":"Thu, 13 Oct 2019 18:38:30 GMT"
|
80
|
+
}'
|
81
|
+
|
82
|
+
LOG_LIST_RESULT = '{
|
83
|
+
"end":5,
|
84
|
+
"logs":[
|
85
|
+
{
|
86
|
+
"timestamp":5474083373405444832,
|
87
|
+
"level":"warning",
|
88
|
+
"requestId":"RQadd26da69146693985ddba1d7a9e70c1834b530d",
|
89
|
+
"accountId":"{account_id}",
|
90
|
+
"callId":"CA9867c2f910a120eccf9beb991ac2370dff862b22",
|
91
|
+
"message":"Fix the fixes",
|
92
|
+
"metadata":{
|
93
|
+
"confId":"CF386ee6698071e9d171165bdf66195ed0a8b52f48",
|
94
|
+
"memberId":"QMc5dbb50754b86e3fc0ad7aee9ed0f7c155971dcd",
|
95
|
+
"test":"test value"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"timestamp":5407855525769595085,
|
100
|
+
"level":"error",
|
101
|
+
"requestId":"RQ5c1842013a4dc46dc9139b22235f2792e43cbb58",
|
102
|
+
"accountId":"{account_id}",
|
103
|
+
"callId":"CA491dbace4532efdb225b54912b0e680edff39588",
|
104
|
+
"message":"They\'re inside the interface, use the back-end PHP alarm to transmit their monitor!",
|
105
|
+
"metadata":{
|
106
|
+
"confId":"CF8047f0704dd15f9f70f6e5ab15d0666d62a82e2d",
|
107
|
+
"memberId":"QMcfa1b5c47b092e769fb88e46f760214b16163a29",
|
108
|
+
"test":"test value"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"timestamp":1475591665000002,
|
113
|
+
"level":"error",
|
114
|
+
"requestId":"RQ1234567890123456789012345678901234567892",
|
115
|
+
"accountId":"{account_id}",
|
116
|
+
"callId":null,
|
117
|
+
"message":"test message 3",
|
118
|
+
"metadata":{
|
119
|
+
"test":"test value"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"nextPageUri":null,
|
124
|
+
"numPages":1,
|
125
|
+
"page":0,
|
126
|
+
"pageSize":100,
|
127
|
+
"start":0,
|
128
|
+
"total":5
|
129
|
+
}'
|
130
|
+
|
131
|
+
CALL_RESULT = '{
|
132
|
+
"uri":"/Accounts/{account_id}/Calls/CA721d58cbeb725da23534375643ff8113f3050241",
|
133
|
+
"revision":1,
|
134
|
+
"dateCreated":"Thu, 13 Oct 2019 17:51:56 GMT",
|
135
|
+
"dateUpdated":"Thu, 13 Oct 2019 19:51:50 GMT",
|
136
|
+
"callId":"CA721d58cbeb725da23534375643ff8113f3050241",
|
137
|
+
"parentCallId":"CA78d058cbeb725da23534375643ff8113f30593ef",
|
138
|
+
"accountId":"{account_id}",
|
139
|
+
"from":"+12093231234",
|
140
|
+
"to":"+12098900611",
|
141
|
+
"phoneNumberId":"PN234f58cbeb725da23534375643ff8113f30500ab",
|
142
|
+
"status":"queued",
|
143
|
+
"startTime":"Thu, 13 Oct 2019 17:51:56 GMT",
|
144
|
+
"connectTime":"Thu, 13 Oct 2019 17:51:59 GMT",
|
145
|
+
"endTime":"Thu, 13 Oct 2019 17:59:54 GMT",
|
146
|
+
"duration":478,
|
147
|
+
"connectDuration": 475,
|
148
|
+
"direction":"outboundDial",
|
149
|
+
"answeredBy":"human",
|
150
|
+
"subresourceUris":{
|
151
|
+
"logs":"/Accounts/{account_id}/Calls/CA721d58cbeb725da23534375643ff8113f3050241/Logs",
|
152
|
+
"recordings":"/Accounts/{account_id}/Calls/CA721d58cbeb725da23534375643ff8113f3050241/Recordings"
|
153
|
+
}
|
154
|
+
}'
|
155
|
+
CONFERENCE_PARTICIPANT_RESULT = '{
|
156
|
+
"accountId":"{account_id}",
|
157
|
+
"conferenceId":"CFd0cc3ab95118aaa597039793a1692313fa9c4936",
|
158
|
+
"callId":"CAef219e4e9152a4b31888620cf391adcae5b6f18c",
|
159
|
+
"uri":"/Accounts/{account_id}/Conferences/CFd0cc3ab95118aaa597039793a1692313fa9c4936/Participants/CAef219e4e9152a4b31888620cf391adcae5b6f18c",
|
160
|
+
"dateCreated":"Thu, 13 Oct 2019 18:23:31 GMT",
|
161
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:23:31 GMT",
|
162
|
+
"revision":1,
|
163
|
+
"talk":true,
|
164
|
+
"listen":true,
|
165
|
+
"startConfOnEnter":true
|
166
|
+
}'
|
167
|
+
|
168
|
+
ACCOUNT_RESULT = '{
|
169
|
+
"uri":"/Accounts/{accountId}",
|
170
|
+
"revision":1,
|
171
|
+
"dateCreated":"Thu, 13 Oct 2019 16:59:34 GMT",
|
172
|
+
"dateUpdated":"Thu, 13 Oct 2019 16:59:34 GMT",
|
173
|
+
"accountId":"{account_id}",
|
174
|
+
"authToken":"428e487a035b837ac2f47f2236ec553550ed2628",
|
175
|
+
"alias":"boostrap account",
|
176
|
+
"label":"customer service",
|
177
|
+
"type":"trial",
|
178
|
+
"status":"active",
|
179
|
+
"subresourceUris":
|
180
|
+
{
|
181
|
+
"applications":"/Accounts/{account_id}/Applications",
|
182
|
+
"calls":"/Accounts/{account_id}/Calls",
|
183
|
+
"availablePhoneNumbers":"/Accounts/{account_id}/AvailablePhoneNumbers",
|
184
|
+
"conferences":"/Accounts/{account_id}/Conferences",
|
185
|
+
"incomingPhoneNumbers":"/Accounts/{account_id}/IncomingPhoneNumbers",
|
186
|
+
"logs":"/Accounts/{account_id}/Logs",
|
187
|
+
"recordings":"/Accounts/{account_id}/Recordings",
|
188
|
+
"queues":"/Accounts/{account_id}/Queues"
|
189
|
+
}
|
190
|
+
}'
|
191
|
+
|
192
|
+
MESSAGE_RESULT = '{
|
193
|
+
"uri":"/Accounts/{account_id}/Messages/SM721d58cbeb725da23534375643ff8113f3050241",
|
194
|
+
"revision":1,
|
195
|
+
"dateCreated":"Thu, 13 Oct 2019 17:51:56 GMT",
|
196
|
+
"dateUpdated":"Thu, 13 Oct 2019 19:51:50 GMT",
|
197
|
+
"messageId":"SM721d58cbeb725da23534375643ff8113f3050241",
|
198
|
+
"accountId":"{account_id}",
|
199
|
+
"from":"+12093231234",
|
200
|
+
"to":"+12098900611",
|
201
|
+
"text":"SMS message sent during a phone call.",
|
202
|
+
"direction":"outbound",
|
203
|
+
"notificationUrl": "http://myapp.com/message-status-notification",
|
204
|
+
"status": "sent"
|
205
|
+
}'
|
206
|
+
|
207
|
+
QUEUE_LIST_RESULT = '{
|
208
|
+
"total":1,
|
209
|
+
"start":0,
|
210
|
+
"end":0,
|
211
|
+
"page":0,
|
212
|
+
"numPages":1,
|
213
|
+
"pageSize":100,
|
214
|
+
"nextPageUri":null,
|
215
|
+
"queues":[
|
216
|
+
{
|
217
|
+
"uri":"/Accounts/{account_id}/Queues/QUeda6c00620d92ec306fa8780aa824352fcd1367a",
|
218
|
+
"dateCreated":"Thu, 13 Oct 2019 18:31:48 GMT",
|
219
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:31:48 GMT",
|
220
|
+
"revision":1,
|
221
|
+
"accountId":"{account_id}",
|
222
|
+
"queueId":"QUeda6c00620d92ec306fa8780aa824352fcd1367a",
|
223
|
+
"alias":"the number",
|
224
|
+
"maxSize":100,
|
225
|
+
"currentSize":0,
|
226
|
+
"averageWaitTime":0,
|
227
|
+
"subresourceUris":{
|
228
|
+
"members":"/Accounts/{account_id}/Queues/QUeda6c00620d92ec306fa8780aa824352fcd1367a/Members"
|
229
|
+
}
|
230
|
+
}
|
231
|
+
]
|
232
|
+
}'
|
233
|
+
|
234
|
+
APPLICATION_LIST_RESULT = '{
|
235
|
+
"total":1,
|
236
|
+
"start":0,
|
237
|
+
"end":0,
|
238
|
+
"page":0,
|
239
|
+
"numPages":1,
|
240
|
+
"pageSize":100,
|
241
|
+
"nextPageUri":null,
|
242
|
+
"applications":[
|
243
|
+
{
|
244
|
+
"uri":"/Accounts/{account_id}/Applications/APec9ba3847dd3c0327abb2fa5f385a1a6195e2870",
|
245
|
+
"revision":1,
|
246
|
+
"dateCreated":"Thu, 13 Oct 2019 17:49:21 GMT",
|
247
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:49:21 GMT",
|
248
|
+
"applicationId":"APec9ba3847dd3c0327abb2fa5f385a1a6195e2870",
|
249
|
+
"accountId":"{account_id}",
|
250
|
+
"alias":"SampleApplication",
|
251
|
+
"voiceUrl":"http://myapp.com/inbound-call",
|
252
|
+
"voiceFallbackUrl":"http://myapp.com/inbound-call-fallback",
|
253
|
+
"callConnectUrl":"http://myapp.com/outbound-connect",
|
254
|
+
"statusCallbackUrl":"http://myapp.com/call-status",
|
255
|
+
"smsUrl":"http://myapp.com/inbound-sms",
|
256
|
+
"smsFallbackUrl":"http://myapp.com/inbound-sms-fallback"
|
257
|
+
}
|
258
|
+
]
|
259
|
+
}'
|
260
|
+
|
261
|
+
AVAILABLE_NUMBER_LIST = '{
|
262
|
+
"total":35,
|
263
|
+
"start":0,
|
264
|
+
"end":19,
|
265
|
+
"page":0,
|
266
|
+
"numPages":2,
|
267
|
+
"pageSize":100,
|
268
|
+
"nextPageUri":"/AvailablePhoneNumbers?cursor=82402c5eefa67219b554e22c63cfb1b92ade8744",
|
269
|
+
"availablePhoneNumbers":[
|
270
|
+
{
|
271
|
+
"phoneNumber":"+14135513872",
|
272
|
+
"voiceEnabled":true,
|
273
|
+
"smsEnabled":true,
|
274
|
+
"alias":"(413) 551-3872",
|
275
|
+
"region":"MA",
|
276
|
+
"country":"US"
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"phoneNumber":"+19135513873",
|
280
|
+
"voiceEnabled":true,
|
281
|
+
"smsEnabled":true,
|
282
|
+
"alias":"(913) 551-3873",
|
283
|
+
"region":"KS",
|
284
|
+
"country":"US"
|
285
|
+
}
|
286
|
+
]
|
287
|
+
}'
|
288
|
+
|
289
|
+
RECORDING_LIST_RESULT = '{
|
290
|
+
"total":1,
|
291
|
+
"start":1,
|
292
|
+
"end":0,
|
293
|
+
"page":0,
|
294
|
+
"numPages":1,
|
295
|
+
"pageSize":100,
|
296
|
+
"nextPageUri":null,
|
297
|
+
"recordings":[
|
298
|
+
{
|
299
|
+
"uri":"/Accounts/{account_id}/Recordings/RE2849364d11dacd7c1e64afb3fd8c8f707a2080b4",
|
300
|
+
"dateCreated":"Thu, 13 Oct 2019 18:49:11 GMT",
|
301
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:49:11 GMT",
|
302
|
+
"revision":1,
|
303
|
+
"recordingId":"RE2849364d11dacd7c1e64afb3fd8c8f707a2080b4",
|
304
|
+
"accountId":"{account_id}",
|
305
|
+
"callId":"CA600933ba07a208317820ddabe8aa0c33e4cbd675",
|
306
|
+
"durationSec":3
|
307
|
+
}
|
308
|
+
]
|
309
|
+
}'
|
310
|
+
|
311
|
+
CALL_LIST_RESULT = '{
|
312
|
+
"total":1,
|
313
|
+
"start":0,
|
314
|
+
"end":0,
|
315
|
+
"page":0,
|
316
|
+
"numPages":1,
|
317
|
+
"pageSize":100,
|
318
|
+
"nextPageUri":null,
|
319
|
+
"calls":[
|
320
|
+
{
|
321
|
+
"uri":"/Accounts/{account_id}/Calls/CA771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1",
|
322
|
+
"revision":1,
|
323
|
+
"dateCreated":"Thu, 13 Oct 2019 17:56:15 GMT",
|
324
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:56:15 GMT",
|
325
|
+
"callId":"CA771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1",
|
326
|
+
"parentCallId":null,
|
327
|
+
"accountId":"{account_id}",
|
328
|
+
"from":"+12098231234",
|
329
|
+
"to":"+12098900611",
|
330
|
+
"phoneNumberId":"PNfffda1c54cdac17a8c1f0a66cdd1d5dae11b123d",
|
331
|
+
"status":"queued",
|
332
|
+
"startTime":"Thu, 24 Oct 2019 12:21:15 GMT",
|
333
|
+
"connectTime":"Thu, 24 Oct 2019 12:21:18 GMT",
|
334
|
+
"endTime":"Thu, 24 Oct 2019 12:32:18 GMT",
|
335
|
+
"duration":663,
|
336
|
+
"connectDuration":660,
|
337
|
+
"direction":"outboundAPI",
|
338
|
+
"answeredBy":"human",
|
339
|
+
"subresourceUris":{
|
340
|
+
"logs":"/Accounts/{account_id}/Calls/CA771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1/Logs",
|
341
|
+
"recordings":"/Accounts/{account_id}/Calls/CA771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1/Recordings"
|
342
|
+
}
|
343
|
+
}
|
344
|
+
]
|
345
|
+
}'
|
346
|
+
|
347
|
+
CONFERNECE_LIST_RESULT = '{
|
348
|
+
"total":1,
|
349
|
+
"start":0,
|
350
|
+
"end":0,
|
351
|
+
"page":0,
|
352
|
+
"numPages":1,
|
353
|
+
"pageSize":100,
|
354
|
+
"nextPageUri":null,
|
355
|
+
"conferences":[
|
356
|
+
{
|
357
|
+
"uri":"/Accounts/{account_id}/Conferences/CFf85f0cb5b546b737c9b807f037b008c8ab621b6e",
|
358
|
+
"revision":1,
|
359
|
+
"dateCreated":"Thu, 13 Oct 2019 18:19:39 GMT",
|
360
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:19:39 GMT",
|
361
|
+
"conferenceId":"CFf85f0cb5b546b737c9b807f037b008c8ab621b6e",
|
362
|
+
"accountId":"{account_id}",
|
363
|
+
"alias":"the number",
|
364
|
+
"playBeep":"always",
|
365
|
+
"record":false,
|
366
|
+
"status":"empty",
|
367
|
+
"waitUrl":"http://myapp/waitaudio",
|
368
|
+
"statusCallbackUrl":"http://myserver/confstatuscallback",
|
369
|
+
"subresourceUris":{
|
370
|
+
"participants":"/Accounts/{account_id}/Conferences/CFf85f0cb5b546b737c9b807f037b008c8ab621b6e/Participants",
|
371
|
+
"recordings":"/Accounts/{account_id}/Conferences/CFf85f0cb5b546b737c9b807f037b008c8ab621b6e/Recordings"
|
372
|
+
}
|
373
|
+
}
|
374
|
+
]
|
375
|
+
}'
|
376
|
+
|
377
|
+
INCOMING_PHONE_NUMBER_LIST_RESULT = '{
|
378
|
+
"total":1,
|
379
|
+
"start":0,
|
380
|
+
"end":0,
|
381
|
+
"page":0,
|
382
|
+
"numPages":1,
|
383
|
+
"pageSize":100,
|
384
|
+
"nextPageUri":null,
|
385
|
+
"incomingPhoneNumbers":[
|
386
|
+
{
|
387
|
+
"uri":"/Accounts/{accountId}/IncomingPhoneNumbers/PN280479a655d90ab71b24d8258ee07210aff8f7b3",
|
388
|
+
"dateCreated":"Thu, 13 Oct 2019 17:44:22 GMT",
|
389
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:44:23 GMT",
|
390
|
+
"revision":1,
|
391
|
+
"phoneNumberId":"PN280479a655d90ab71b24d8258ee07210aff8f7b3",
|
392
|
+
"accountId":"{account_id}",
|
393
|
+
"applicationId":"APfc31da0abae9482a9da39751ea4ef69ebde32dfe",
|
394
|
+
"phoneNumber":"+14195533872",
|
395
|
+
"alias":"(419) 553-3872",
|
396
|
+
"region":"OH",
|
397
|
+
"country":"US",
|
398
|
+
"voiceEnabled":true,
|
399
|
+
"smsEnabled":true
|
400
|
+
}
|
401
|
+
]
|
402
|
+
}'
|
403
|
+
|
404
|
+
QUEUE_MEMBER_RESULT = '{
|
405
|
+
"total":1,
|
406
|
+
"start":0,
|
407
|
+
"end":0,
|
408
|
+
"page":0,
|
409
|
+
"numPages":1,
|
410
|
+
"pageSize":100,
|
411
|
+
"nextPageUri":null,
|
412
|
+
"queueMembers":[
|
413
|
+
{
|
414
|
+
"uri":"/Accounts/{account_id}/Queues/QUeda341f1fba015aa029a3342f23a3ae0c45e302b/Members/CAb933917ae0d3547bd65da77a4aa50e0329850401",
|
415
|
+
"callId":"CAb933917ae0d3547bd65da77a4aa50e0329850401",
|
416
|
+
"waitTime":0,
|
417
|
+
"position":1,
|
418
|
+
"dateEnqueued":"Thu, 13 Oct 2019 18:28:58 GMT"
|
419
|
+
}
|
420
|
+
]
|
421
|
+
}'
|
422
|
+
|
423
|
+
PARTICIPANT_LIST_RESULT = '{
|
424
|
+
"total":1,
|
425
|
+
"start":1,
|
426
|
+
"end":1,
|
427
|
+
"page":1,
|
428
|
+
"numPages":1,
|
429
|
+
"pageSize":100,
|
430
|
+
"nextPageUri":null,
|
431
|
+
"participants":[
|
432
|
+
{
|
433
|
+
"accountId":"{account_id}",
|
434
|
+
"conferenceId":"CFd0cc3ab95118aaa597039793a1692313fa9c4936",
|
435
|
+
"callId":"CAef219e4e9152a4b31888620cf391adcae5b6f18c",
|
436
|
+
"uri":"/Accounts/{account_id}/Conferences/CFd0cc3ab95118aaa597039793a1692313fa9c4936/Participants/CAef219e4e9152a4b31888620cf391adcae5b6f18c",
|
437
|
+
"dateCreated":"Thu, 13 Oct 2019 18:23:31 GMT",
|
438
|
+
"dateUpdated":"Thu, 13 Oct 2019 18:23:31 GMT",
|
439
|
+
"revision":1,
|
440
|
+
"talk":true,
|
441
|
+
"listen":true,
|
442
|
+
"startConfOnEnter":true
|
443
|
+
}
|
444
|
+
]
|
445
|
+
}'
|
446
|
+
|
447
|
+
MESSAGE_LIST_RESULT = '{
|
448
|
+
"total":1,
|
449
|
+
"start":0,
|
450
|
+
"end":0,
|
451
|
+
"page":0,
|
452
|
+
"numPages":1,
|
453
|
+
"pageSize":100,
|
454
|
+
"nextPageUri":null,
|
455
|
+
"messages":[
|
456
|
+
{
|
457
|
+
"uri":"/Accounts/{account_id}/Messages/SM771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1",
|
458
|
+
"revision":1,
|
459
|
+
"dateCreated":"Thu, 13 Oct 2019 17:56:15 GMT",
|
460
|
+
"dateUpdated":"Thu, 13 Oct 2019 17:56:15 GMT",
|
461
|
+
"messageId":"SM771fa1c54cdac17a8c1f0a66cdd1d5dae11b98a1",
|
462
|
+
"accountId":"{account_id}",
|
463
|
+
"from":"+12098231234",
|
464
|
+
"to":"+12098900611",
|
465
|
+
"text":"Outbound SMS message",
|
466
|
+
"direction":"outbound",
|
467
|
+
"notificationUrl": "http://myapp.com/message-status-notification",
|
468
|
+
"status": "sent"
|
469
|
+
}
|
470
|
+
]
|
471
|
+
}'
|
472
|
+
|
473
|
+
end
|