-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathPlivoAPIService.java
More file actions
868 lines (659 loc) · 47.4 KB
/
PlivoAPIService.java
File metadata and controls
868 lines (659 loc) · 47.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
package com.plivo.api;
import com.plivo.api.models.account.*;
import com.plivo.api.models.address.*;
import com.plivo.api.models.application.*;
import com.plivo.api.models.base.BaseResponse;
import com.plivo.api.models.base.ListResponse;
import com.plivo.api.models.call.*;
import com.plivo.api.models.call.actions.*;
import com.plivo.api.models.complianceapplication.*;
import com.plivo.api.models.compliancedocument.*;
import com.plivo.api.models.compliancedocumenttype.*;
import com.plivo.api.models.compliancerequirement.*;
import com.plivo.api.models.conference.*;
import com.plivo.api.models.endpoint.*;
import com.plivo.api.models.enduser.*;
import com.plivo.api.models.identity.*;
import com.plivo.api.models.maskingsession.*;
import com.plivo.api.models.media.Media;
import com.plivo.api.models.media.MediaResponse;
import com.plivo.api.models.message.Message;
import com.plivo.api.models.message.MessageCreateResponse;
import com.plivo.api.models.message.MessageCreator;
import com.plivo.api.models.message.MmsMedia;
import com.plivo.api.models.multipartycall.*;
import com.plivo.api.models.node.*;
import com.plivo.api.models.node.MultiPartyCall;
import com.plivo.api.models.number.*;
import com.plivo.api.models.number.Number;
import com.plivo.api.models.phonenumbercompliance.*;
import com.plivo.api.models.phlo.Phlo;
import com.plivo.api.models.phlo.PhloRunGetterResponse;
import com.plivo.api.models.phlo.PhloUpdateResponse;
import com.plivo.api.models.powerpack.*;
import com.plivo.api.models.pricing.Pricing;
import com.plivo.api.models.recording.Recording;
import com.plivo.api.models.brand.Brand;
import com.plivo.api.models.brand.BrandCreateResponse;
import com.plivo.api.models.brand.BrandCreator;
import com.plivo.api.models.brand.BrandUsecase;
import com.plivo.api.models.brand.BrandDeleteResponse;
import com.plivo.api.models.campaign.*;
import com.plivo.api.models.profile.*;
import com.plivo.api.models.token.TokenCreateResponse;
import com.plivo.api.models.token.TokenCreator;
import com.plivo.api.models.verify_session.SessionCreateResponse;
import com.plivo.api.models.verify_session.SessionCreator;
import com.plivo.api.models.verify_session.ValidateSession;
import com.plivo.api.models.verify_session.VerifySession;
import com.plivo.api.models.verify_session.VerifySessionList;
import com.plivo.api.models.tollfree_verification.*;
import com.plivo.api.models.verify.*;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;
import java.util.Map;
public interface PlivoAPIService {
// Address
@POST("Account/{authId}/Verification/Address/")
Call<AddressCreateResponse> addressCreate(@Path("authId") String authId,
@Body AddressCreator addressCreator);
@GET("Account/{authId}/Verification/Address/")
Call<ListResponse<Address>> addressList(@Path("authId") String authId,
@QueryMap Map<String, Object> addressListRequest);
@GET("Account/{authId}/Verification/Address/{addressId}/")
Call<Address> addressGet(@Path("authId") String authId, @Path("addressId") String addressId);
@POST("Account/{authId}/Verification/Address/{addressId}/")
Call<AddressUpdateResponse> addressUpdate(@Path("authId") String authId,
@Path("addressId") String addressId, @Body AddressUpdater addressUpdater);
@DELETE("Account/{authId}/Verification/Address/{addressId}/")
Call<ResponseBody> addressDelete(@Path("authId") String authId, @Path("addressId") String addressId);
// Application
@POST("Account/{authId}/Application/")
Call<ApplicationCreateResponse> applicationCreate(@Path("authId") String authId,
@Body ApplicationCreator application);
@GET("Account/{authId}/Application/")
Call<ListResponse<Application>> applicationList(@Path("authId") String authId,
@QueryMap Map<String, Object> applicationListRequest);
@GET("Account/{authId}/Application/{appId}/")
Call<Application> applicationGet(@Path("authId") String authId, @Path("appId") String appId);
@POST("Account/{authId}/Application/{appId}/")
Call<ApplicationUpdateResponse> applicationUpdate(@Path("authId") String authId,
@Path("appId") String appId, @Body ApplicationUpdater application);
@HTTP(method = "DELETE", path = "Account/{authId}/Application/{appId}/", hasBody = true)
Call<ResponseBody> applicationDelete(@Path("authId") String authId, @Path("appId") String appId, @Body ApplicationDeleter application);
// Account
@GET("Account/{authId}/")
Call<Account> accountGet(@Path("authId") String authId);
@POST("Account/{authId}/")
Call<AccountUpdateResponse> accountModify(@Path("authId") String authId,
@Body AccountUpdater accountUpdater);
@POST("Account/{authId}/Subaccount/")
Call<SubaccountCreateResponse> subaccountCreate(@Path("authId") String authId,
@Body SubaccountCreator subaccountCreator);
@POST("Account/{authId}/Subaccount/{subauthId}/")
Call<SubaccountUpdateResponse> subaccountModify(@Path("authId") String authId,
@Path("subauthId") String subauthId, @Body SubaccountUpdater subaccount);
@GET("Account/{authId}/Subaccount/{subauthId}/")
Call<Subaccount> subaccountGet(@Path("authId") String authId,
@Path("subauthId") String subauthId);
@GET("Account/{authId}/Subaccount/")
Call<ListResponse<Subaccount>> subaccountList(@Path("authId") String authId,
@Query("limit") Integer limit, @Query("offset") Integer offset);
@HTTP(method = "DELETE", path = "Account/{authId}/Subaccount/{subauthId}/", hasBody = true)
Call<ResponseBody> subaccountDelete(@Path("authId") String authId,
@Path("subauthId") String subauthId, @Body SubaccountDeleter subaccount);
// Call
@POST("Account/{authId}/Call/")
Call<CallCreateResponse> callCreate(@Path("authId") String authId,
@Body CallCreator callCreator);
@GET("Account/{authId}/Call/")
Call<ListResponse<com.plivo.api.models.call.Call>> callList(@Path("authId") String authId,
@QueryMap Map<String, Object> callListRequest);
@GET("Account/{authId}/Call/{callId}/")
Call<com.plivo.api.models.call.Call> callGet(@Path("authId") String authId,
@Path("callId") String callId);
@POST("Account/{authId}/Call/{callId}/")
Call<CallUpdateResponse> callUpdate(@Path("authId") String authId,
@Path("callId") String callId, @Body CallUpdater callUpdater);
@DELETE("Account/{authId}/Call/{callId}/")
Call<ResponseBody> callDelete(@Path("authId") String authId, @Path("callId") String callId);
@GET("Account/{authId}/Call/?status=live")
Call<LiveCallListResponse> liveCallListGet(@Path("authId") String authId, @QueryMap Map<String, Object> callListRequest);
@GET("Account/{authId}/Call/{callId}/?status=live")
Call<LiveCall> liveCallGet(@Path("authId") String authId, @Path("callId") String callId);
@GET("Account/{authId}/Call/?status=queued")
Call<QueuedCallListResponse> queuedCallListGet(@Path("authId") String authId);
@GET("Account/{authId}/Call/{callId}/?status=queued")
Call<QueuedCall> queuedCallGet(@Path("authId") String authId, @Path("callId") String callId);
@POST("Account/{authId}/Call/{callId}/Record/")
Call<CallRecordCreateResponse> callRecordCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
CallRecordCreator callRecordCreator);
@DELETE("Account/{authId}/Call/{callId}/Record/")
Call<ResponseBody> callRecordDelete(@Path("authId") String authId, @Path("callId") String callId);
@POST("Account/{authId}/Call/{callId}/Play/")
Call<CallPlayCreateResponse> callPlayCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
CallPlayCreator callPlayCreator);
@DELETE("Account/{authId}/Call/{callId}/Play/")
Call<ResponseBody> callPlayDelete(@Path("authId") String authId, @Path("callId") String callId);
@POST("Account/{authId}/Call/{callId}/Speak/")
Call<CallSpeakCreateResponse> callSpeakCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
CallSpeakCreator callSpeakCreator);
@DELETE("Account/{authId}/Call/{callId}/Speak/")
Call<ResponseBody> callSpeakDelete(@Path("authId") String authId, @Path("callId") String callId);
@POST("Account/{authId}/Call/{callId}/DTMF/")
Call<CallDtmfCreateResponse> callDtmfCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
CallDtmfCreator callDtmfCreator);
// Identity
@POST("Account/{authId}/Verification/Identity/")
Call<IdentityCreateResponse> identityCreate(@Path("authId") String authId,
@Body IdentityCreator identitycreator);
@GET("Account/{authId}/Verification/Identity/")
Call<ListResponse<Identity>> identityList(@Path("authId") String authId,
@QueryMap Map<String, Object> identityListRequest);
@GET("Account/{authId}/Verification/Identity/{id}/")
Call<Identity> identityGet(@Path("authId") String authId, @Path("id") String id);
@DELETE("Account/{authId}/Verification/Identity/{id}/")
Call<ResponseBody> identityDelete(@Path("authId") String authId, @Path("id") String number);
@POST("Account/{authId}/Verification/Identity/{id}/")
Call<IdentityUpdateResponse> identityUpdate(@Path("authId") String authId, @Path("id") String identityId, @Body IdentityUpdater identityUpdater);
// Message
@POST("Account/{authId}/Message/")
Call<MessageCreateResponse> messageSend(@Path("authId") String authId,
@Body MessageCreator messageCreator);
@GET("Account/{authId}/Message/")
Call<ListResponse<Message>> messageList(@Path("authId") String authId,
@QueryMap Map<String, Object> messageListRequest);
@GET("Account/{authId}/Message/{id}/")
Call<Message> messageGet(@Path("authId") String authId, @Path("id") String id);
@GET("Account/{authId}/Message/{id}/Media/")
Call<ListResponse<MmsMedia>> mmsMediaList(@Path("authId") String authId, @Path("id") String id, @QueryMap Map<String, Object> mediaListRequest);
@GET("Account/{authId}/Message/{id}/Media/{media_id}/")
Call<MmsMedia> mmsMediaGet(@Path("authId") String authId, @Path("id") String id, @Path("media_id") String media_id);
@DELETE("Account/{authId}/Message/{id}/Media/")
Call<ResponseBody> mmsMediaDelete(@Path("authId") String authId, @Path("id") String id);
// Number
@GET("Account/{authId}/Number/")
Call<ListResponse<Number>> numberList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
@GET("Account/{authId}/Number/{number}/")
Call<Number> numberGet(@Path("authId") String authId, @Path("number") String number);
@POST("Account/{authId}/Number/")
Call<NumberCreateResponse> numberCreate(@Path("authId") String authId,
@Body NumberCreator numberCreator);
@POST("Account/{authId}/Number/{number}/")
Call<NumberUpdateResponse> numberUpdate(@Path("authId") String authId,
@Path("number") String number, @Body NumberUpdater numberUpdater);
@DELETE("Account/{authId}/Number/{number}/")
Call<ResponseBody> numberDelete(@Path("authId") String authId, @Path("number") String number);
@GET("Account/{authId}/PhoneNumber/")
Call<ListResponse<PhoneNumber>> phoneNumberList(@Path("authId") String authId, @QueryMap Map<String, Object> params);
@POST("Account/{authId}/PhoneNumber/{number}/")
Call<PhoneNumberCreateResponse> phoneNumberCreate(@Path("authId") String authId,
@Path("number") String number, @Body
PhoneNumberCreator creator);
//10dlc
@POST("Account/{authId}/10dlc/Brand/")
Call<BrandCreateResponse> createBrand(@Path("authId") String authId,
@Body BrandCreator createBrand);
@GET("Account/{authId}/10dlc/Brand/")
Call<ListResponse<Brand>> brandList(@Path("authId") String authId,
@QueryMap Map<String, Object> brandListRequest,
@Query("limit") Integer limit, @Query("offset") Integer offset);
@GET("Account/{authId}/10dlc/Brand/{id}/")
Call<Brand> brandGet(@Path("authId") String authId, @Path("id") String brandId);
@DELETE("Account/{authId}/10dlc/Brand/{id}/")
Call<BrandDeleteResponse> brandDelete(@Path("authId") String authId, @Path("id") String brandId);
@GET("Account/{authId}/10dlc/Brand/{id}/usecases/")
Call<BrandUsecase> brandUsecaseGet(@Path("authId") String authId, @Path("id") String brandId);
@POST("Account/{authId}/10dlc/Campaign/")
Call<CampaignCreateResponse> createCampaign(@Path("authId") String authId,
@Body CampaignCreator campaignCreator);
@POST("Account/{authId}/10dlc/Campaign/{id}/")
Call<CampaignUpdateResponse> updateCampaign(@Path("authId") String authId, @Path("id") String campaignId,
@Body CampaignUpdater campaignUpdater);
@POST("Account/{authId}/10dlc/Campaign/{campaign_id}/Number/")
Call<CampaignNumberLinkerResponse> linkCampaignNumber(@Path("authId") String authId, @Path("campaign_id") String campaignID,
@Body CampaignNumberLinker campaignNumberLinker);
@GET("Account/{authId}/10dlc/Campaign/{campaign_id}/Number/")
Call<CampaignNumbers> campaignNumbersGet(@Path("authId") String authId, @Path("campaign_id") String campaignID,
@Query("limit") Integer limit, @Query("offset") Integer offset);
@GET("Account/{authId}/10dlc/Campaign/{campaign_id}/Number/{number}/")
Call<CampaignNumbers> campaignNumberGet(@Path("authId") String authId, @Path("campaign_id") String campaignID, @Path("number") String number);
@DELETE("Account/{authId}/10dlc/Campaign/{campaign_id}/Number/{number}/")
Call<CampaignNumbers> unlinkCampaignNumber(@Path("authId") String authId, @Path("campaign_id") String campaignID,
@Path("number") String number, @Query("url") String url, @Query("method") String method);
@POST("Account/{authId}/10dlc/Campaign/Import/")
Call<CampaignImportResponse> importCampaign(@Path("authId") String authId,
@Body CampaignImporter campaignImporter);
@POST("Account/{authId}/Profile/")
Call<ProfileAddResponse> profileAdd(@Path("authId") String authId, @Body ProfileAdder profileAdder);
@POST("Account/{authId}/Profile/{profileUUID}/")
Call<Profile> profileUpdate(@Path("authId") String authId, @Path("profileUUID") String profileUUID, @Body ProfileUpdater profileUpdater);
@DELETE("Account/{authId}/Profile/{profileUUID}/")
Call<Profile> profileDelete(@Path("authId") String authId, @Path("profileUUID") String profileUUID);
@GET("Account/{authId}/Profile/")
Call<ListResponse<Profile>> profileList(@Path("authId") String authId,
@QueryMap Map<String, Object> profileListRequest,
@Query("limit") Integer limit, @Query("offset") Integer offset);
@GET("Account/{authId}/Profile/{profileUUID}/")
Call<Profile> profileGet(@Path("authId") String authId, @Path("profileUUID") String profileUUID);
@GET("Account/{authId}/10dlc/Campaign/")
Call<ListResponse<Campaign>> campaignList(@Path("authId") String authId,
@QueryMap Map<String, Object> campaignListRequest,
@Query("limit") Integer limit, @Query("offset") Integer offset, @Query("campaign_source") String campaignSource, @Query("brand_id") String brandId, @Query("usecase") String usecase, @Query("registration_status") String registrationStatus);
@GET("Account/{authId}/10dlc/Campaign/{campaignId}/")
Call<Campaign> campaignGet(@Path("authId") String authId, @Path("campaignId") String campaignId);
@DELETE("Account/{authId}/10dlc/Campaign/{campaignId}/")
Call<CampaignDeleteResponse> campaignDelete(@Path("authId") String authId, @Path("campaignId") String campaignId);
// Recording
@GET("Account/{authId}/Recording/")
Call<ListResponse<Recording>> recordingList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
@GET("Account/{authId}/Recording/{recordingId}/")
Call<Recording> recordingGet(@Path("authId") String authId,
@Path("recordingId") String recordingId);
@DELETE("Account/{authId}/Recording/{recordingId}/")
Call<ResponseBody> recordingDelete(@Path("authId") String authId,
@Path("recordingId") String recordingId);
// Endpoint
@POST("Account/{authId}/Endpoint/")
Call<EndpointCreateResponse> endpointCreate(@Path("authId") String authId,
@Body EndpointCreator endpointCreator);
@POST("Account/{authId}/JWT/Token/")
Call<TokenCreateResponse> tokenCreate(@Path("authId") String authId,
@Body TokenCreator tokenCreator);
@GET("Account/{authId}/Masking/Session/")
Call<ListResponse<MaskingSession>> maskingSessionList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
@GET("Account/{authId}/Masking/Session/{sessionUuid}/")
Call<MaskingSession> maskingSessionGet(@Path("authId") String authId, @Path("sessionUuid") String sessionUuid);
@DELETE("Account/{authId}/Masking/Session/{sessionUuid}/")
Call<ResponseBody> maskingSessionDelete(@Path("authId") String authId,
@Path("sessionUuid") String sessionUuid);
@POST("Account/{authId}/Masking/Session/{sessionUuid}/")
Call<MaskingSessionUpdateResponse> maskingSessionUpdate(@Path("authId") String authId,
@Path("sessionUuid") String sessionUuid, @Body
MaskingSessionUpdater maskingSessionUpdater);
@POST("Account/{authId}/Masking/Session/")
Call<MaskingSessionCreateResponse> maskingSessionCreate(@Path("authId") String authId,
@Body MaskingSessionCreator maskingSessionCreator);
@GET("Account/{authId}/Endpoint/")
Call<ListResponse<Endpoint>> endpointList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
@GET("Account/{authId}/Endpoint/{endpointId}/")
Call<Endpoint> endpointGet(@Path("authId") String authId, @Path("endpointId") String endpointId);
@POST("Account/{authId}/Endpoint/{endpointId}/")
Call<EndpointUpdateResponse> endpointUpdate(@Path("authId") String authId,
@Path("endpointId") String endpointId, @Body
EndpointUpdater endpointUpdater);
@DELETE("Account/{authId}/Endpoint/{endpointId}/")
Call<ResponseBody> endpointDelete(@Path("authId") String authId,
@Path("endpointId") String endpointId);
// Conference
@GET("Account/{authId}/Conference/")
Call<ConferenceList> conferenceListGet(@Path("authId") String authId);
@GET("Account/{authId}/Conference/{conferenceName}/")
Call<Conference> conferenceGet(@Path("authId") String authId,
@Path("conferenceName") String conferenceName);
@DELETE("Account/{authId}/Conference/")
Call<ResponseBody> conferenceDeleteAll(@Path("authId") String authId);
@DELETE("Account/{authId}/Conference/{conferenceName}/")
Call<ResponseBody> conferenceDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName);
@DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/")
Call<ConferenceMemberActionResponse> conferenceMemberDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
// Required as there is no body
@Headers("Content-Type: application/json")
@POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Kick/")
Call<ConferenceMemberActionResponse> conferenceMemberKickCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
// Required as there is no body
@Headers("Content-Type: application/json")
@POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Mute/")
Call<ConferenceMemberActionResponse> conferenceMemberMuteCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
@DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Mute/")
Call<ResponseBody> conferenceMemberMuteDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
@POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
Call<ConferenceMemberActionResponse> conferenceMemberPlayCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
@Body ConferenceMemberPlayCreator conferenceMemberPlayCreator);
@DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
Call<ResponseBody> conferenceMemberPlayDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
@POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
Call<ConferenceMemberActionResponse> conferenceMemberSpeakCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
@Body ConferenceMemberSpeakCreator conferenceMemberSpeakCreator);
@DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
Call<ResponseBody> conferenceMemberSpeakDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
// Required as there is no body
@Headers("Content-Type: application/json")
@POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Deaf/")
Call<ConferenceMemberActionResponse> conferenceMemberDeafCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
@DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Deaf/")
Call<ResponseBody> conferenceMemberDeafDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
// Required as there is no body
@Headers("Content-Type: application/json")
@POST("Account/{authId}/Conference/{conferenceName}/Record/")
Call<ConferenceRecordCreateResponse> conferenceRecordCreate(@Path("authId") String authId,
@Path("conferenceName") String conferenceName);
@DELETE("Account/{authId}/Conference/{conferenceName}/Record/")
Call<ResponseBody> conferenceRecordDelete(@Path("authId") String authId,
@Path("conferenceName") String conferenceName);
// Pricing
@GET("Account/{authId}/Pricing/")
Call<Pricing> pricingGet(@Path("authId") String authId, @Query("country_iso") String countryIso);
@DELETE("Account/{authId}/Request/{requestUuid}/")
Call<ResponseBody> requestDelete(@Path("authId") String authId, @Path("requestUuid") String requestUuid);
// PHLO - server is different from plivo server. Need content-type setting for POST
@GET("phlo/{phloId}")
Call<Phlo> phloGet(@Path("phloId") String phloId);
@GET("phlo/{phloId}/runs/{runId}")
Call<PhloRunGetterResponse> phloRunGet(@Path("phloId") String phloId, @Path("runId") String runId);
@Headers("Content-Type: application/json")
@POST("phlo/{phloId}/{nodeType}/{nodeId}")
Call<MultiPartyCallUpdateResponse> nodeAction(@Path("phloId") String phloId,
@Path("nodeType") NodeType nodeType,
@Path("nodeId") String nodeId,
@Body MultiPartyCallUpdatePayload payload);
@Headers("Content-Type: application/json")
@POST("phlo/{phloId}/{nodeType}/{nodeId}/members/{memberId}")
Call<MultiPartyCallUpdateResponse> memberAction(@Path("phloId") String phloId,
@Path("nodeType") NodeType nodeType,
@Path("nodeId") String nodeId,
@Path("memberId") String memberId,
@Body MultiPartyCallUpdatePayload payload);
@GET("phlo/{phloId}/{nodeType}/{nodeId}")
Call<MultiPartyCall> multiPartyCallGet(@Path("phloId") String phloId,
@Path("nodeType") NodeType nodeType,
@Path("nodeId") final String nodeId);
@Headers("Content-Type: application/json")
@POST("account/{authId}/phlo/{phloId}")
Call<PhloUpdateResponse> runPhlo(@Path("authId") String authId,
@Path("phloId") String phloId,
@Body Map<String, Object> payload);
//Powerpack
@POST("Account/{authId}/Powerpack/")
Call<PowerpackResponse> createPowerpack(@Path("authId") String authId, @Body PowerpackCreator powerpackCreator);
@GET("Account/{authId}/Powerpack/{uuid}/")
Call<Powerpack> powerpackGet(@Path("authId") String authId, @Path("uuid") String uuid);
@GET("Account/{authId}/Powerpack/")
Call<ListResponse<Powerpack>> powerpackList(@Path("authId") String authId,
@QueryMap Map<String, Object> powerpackListRequest);
//
@POST("Account/{authId}/Powerpack/{uuid}/")
Call<PowerpackUpdateResponse> powerpackUpdate(@Path("authId") String authId,
@Path("uuid") String uuid, @Body PowerpackUpdater powerpackUpdater);
//
@HTTP(method = "DELETE", path = "Account/{authId}/Powerpack/{id}/", hasBody = true)
Call<ResponseBody> powerpackDeleter(@Path("authId") String authId, @Path("id") String id, @Body PowerpackDeleter powerpackDelete);
@GET("Account/{authId}/NumberPool/{uuid}/Number/")
Call<ListResponse<Numbers>> powerpackNumberList(@Path("authId") String authId, @Path("uuid") String uuid,
@QueryMap Map<String, Object> powerpackNumberListRequest);
@GET("Account/{authId}/NumberPool/{uuid}/Shortcode/")
Call<ListResponse<Shortcode>> powerpackShortcodeList(@Path("authId") String authId, @Path("uuid") String uuid,
@QueryMap Map<String, Object> powerpackShortcodeListRequest);
//
@GET("Account/{authId}/NumberPool/{uuid}/Tollfree/")
Call<ListResponse<Tollfree>> powerpackTollfreeList(@Path("authId") String authId, @Path("uuid") String uuid,
@QueryMap Map<String, Object> powerpackTollfreeListRequest);
@GET("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
Call<Numbers> powerpackFindNumberGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number);
@GET("Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/")
Call<Shortcode> powerpackFindShortcodeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode);
@GET("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
Call<Tollfree> powerpackFindTollfreeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree);
@POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
Call<Numbers> powerpackAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body PowerpackAddNumber addnumber);
@POST("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
Call<Tollfree> powerpackAddTollfreeCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body PowerpackAddTollfree addtollfree);
@HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Number/{number}/", hasBody = true)
Call<ResponseBody> powerpackNumberDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body RemoveNumber numberDeleter);
@HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/", hasBody = true)
Call<ResponseBody> powerpackTollfreeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body RemoveTollfree tollfreeDeleter);
@HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/", hasBody = true)
Call<ResponseBody> powerpackShortcodeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode, @Body RemoveShortcode shortcodeDeleter);
@POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
Call<Numbers> powerpackBuyAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body BuyAddNumbers numbers);
@GET("Account/{authId}/Media/")
Call<ListResponse<Media>> mediaList(@Path("authId") String authId, @QueryMap Map<String, Object> mediaListRequest);
@GET("Account/{authId}/Media/{id}/")
Call<Media> mediaGet(@Path("authId") String authId, @Path("id") String id);
@POST("Account/{authId}/Media/")
Call<MediaResponse> uploadMedia(@Path("authId") String authId, @Body RequestBody mediaUploads);
// Enduser
// Get
@GET("Account/{authId}/EndUser/{id}/")
Call<EndUser> endUserGet(@Path("authId") String authId, @Path("id") String id);
// Create
@POST("Account/{authId}/EndUser/")
Call<EndUserCreateResponse> endUserCreate(@Path("authId") String authId,
@Body EndUserCreator endUserCreator);
// Update
@POST("Account/{authId}/EndUser/{id}/")
Call<EndUserUpdateResponse> endUserUpdate(@Path("authId") String authId, @Path("id") String id,
@Body EndUserUpdater endUserUpdater);
// List all end user
@GET("Account/{authId}/EndUser/")
Call<ListResponse<EndUser>> endUserList(@Path("authId") String authId,
@QueryMap Map<String, Object> endUserListRequest);
@DELETE("Account/{authId}/EndUser/{id}/")
Call<ResponseBody> endUserDelete(@Path("authId") String authId, @Path("id") String endUserId);
// Compliance Document Type
// Get
@GET("Account/{authId}/ComplianceDocumentType/{id}/")
Call<ComplianceDocumentType> complianceDocumentTypeGet(@Path("authId") String authId, @Path("id") String id);
// List
@GET("Account/{authId}/ComplianceDocumentType/")
Call<ListResponse<ComplianceDocumentType>> complianceDocumentTypeList(@Path("authId") String authId,
@QueryMap Map<String, Object> complianceDocumentListRequest);
// Compliance Requirement
// Get
@GET("Account/{authId}/ComplianceRequirement/{id}/")
Call<ComplianceRequirement> complianceRequirementGet(@Path("authId") String authId, @Path("id") String id);
// List
@GET("Account/{authId}/ComplianceRequirement/")
Call<ComplianceRequirement> complianceRequirementList(@Path("authId") String authId,
@QueryMap Map<String, Object> complianceDocumentListRequest);
// Compliance Application
// Get
@GET("Account/{authId}/ComplianceApplication/{id}/")
Call<ComplianceApplication> complianceApplicationGet(@Path("authId") String authId, @Path("id") String id);
// Create
@POST("Account/{authId}/ComplianceApplication/")
Call<ComplianceApplicationCreateResponse> complianceApplicationCreate(@Path("authId") String authId,
@Body ComplianceApplicationCreator complianceApplicationCreator);
// Update
@POST("Account/{authId}/ComplianceApplication/{id}/")
Call<ComplianceApplicationUpdateResponse> complianceApplicationUpdate(@Path("authId") String authId, @Path("id") String id,
@Body ComplianceApplicationUpdater complianceApplicationUpdater);
// List
@GET("Account/{authId}/ComplianceApplication/")
Call<ListResponse<ComplianceApplication>> complianceApplicationList(@Path("authId") String authId,
@QueryMap Map<String, Object> complianceApplicationLister);
// Delete
@DELETE("Account/{authId}/ComplianceApplication/{id}/")
Call<ResponseBody> complianceApplicationDelete(@Path("authId") String authId, @Path("id") String complianceApplicationId);
// Submit
@POST("Account/{authId}/ComplianceApplication/{id}/Submit/")
Call<ComplianceApplicationCreateResponse> complianceApplicationSubmit(@Path("authId") String authId, @Path("id") String id,
@Body ComplianceApplicationSubmitter complianceDocumentCreator);
// Compliance Document
// Get
@GET("Account/{authId}/ComplianceDocument/{id}/")
Call<ComplianceDocument> complianceDocumentGet(@Path("authId") String authId, @Path("id") String id);
// Create
@POST("Account/{authId}/ComplianceDocument/")
Call<ComplianceDocumentCreateResponse> complianceDocumentCreate(@Path("authId") String authId,
@Body RequestBody complianceDocumentCreator);
// Update
@POST("Account/{authId}/ComplianceDocument/{id}/")
Call<ComplianceDocumentUpdateResponse> complianceDocumentUpdate(@Path("authId") String authId, @Path("id") String id,
@Body RequestBody complianceDocumentUpdater);
// List
@GET("Account/{authId}/ComplianceDocument/")
Call<ListResponse<ComplianceDocument>> complianceDocumentList(@Path("authId") String authId,
@QueryMap Map<String, Object> complianceDocumentLister);
// Delete
@DELETE("Account/{authId}/ComplianceDocument/{id}/")
Call<ResponseBody> complianceDocumentDelete(@Path("authId") String authId, @Path("id") String complianceDocumentId);
// List multiparty calls
@GET("Account/{authId}/MultiPartyCall/")
Call<ListResponse<com.plivo.api.models.multipartycall.MultiPartyCall>> mpcList(@Path("authId") String authId, @QueryMap Map<String, Object> params);
// Get multiparty call
@GET("Account/{authId}/MultiPartyCall/{mpcId}/")
Call<com.plivo.api.models.multipartycall.MultiPartyCall> mpcGet(@Path("authId") String authId, @Path("mpcId") String mpcId);
// Start multiparty call
@POST("Account/{authId}/MultiPartyCall/{mpcId}/")
Call<BaseResponse> mpcStart(@Path("authId") String authId, @Path("mpcId") String mpcId, @Body Map<String, Object> body);
// End multiparty call
@DELETE("Account/{authId}/MultiPartyCall/{mpcId}/")
Call<ResponseBody> mpcStop(@Path("authId") String authId, @Path("mpcId") String mpcId);
// Add new participant to multiparty call
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Participant/")
Call<MultiPartyCallParticipantAddResponse> mpcAddParticipant(@Path("authId") String authId, @Path("mpcId") String mpcId, @Body MultiPartyCallParticipantAdd addParticipant);
// List participants of multiparty call
@GET("Account/{authId}/MultiPartyCall/{mpcId}/Participant/")
Call<ListResponse<MultiPartyCallParticipant>> mpcListParticipants(@Path("authId") String authId, @Path("mpcId") String mpcId, @QueryMap Map<String, Object> params);
// Start recording multiparty call
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Record/")
Call<MultiPartyCallRecordingStartResponse> mpcStartRecording(@Path("authId") String authId, @Path("mpcId") String mpcId, @Body MultiPartyCallRecordingStart startRecording);
// Stop recording multiparty call
@DELETE("Account/{authId}/MultiPartyCall/{mpcId}/Record/")
Call<ResponseBody> mpcRecordStop(@Path("authId") String authId, @Path("mpcId") String mpcId);
// Pause recording multiparty call
@Headers("Content-Type: application/json")
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Record/Pause/")
Call<BaseResponse> mpcPauseRecording(@Path("authId") String authId, @Path("mpcId") String mpcId);
// Resume recording multiparty call
@Headers("Content-Type: application/json")
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Record/Resume/")
Call<BaseResponse> mpcResumeRecording(@Path("authId") String authId, @Path("mpcId") String mpcId);
// Get participant of multiparty call
@GET("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/")
Call<MultiPartyCallParticipant> mpcMemberGet(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
// Update participant of multiparty call
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/")
Call<MultiPartyCallParticipantUpdateResponse> mpcMemberUpdate(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId, @Body MultiPartyCallParticipantUpdate updateParticipant);
// Kick participant of multiparty call
@DELETE("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/")
Call<ResponseBody> mpcMemberKick(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
// Start participant recording multiparty call
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/Record/")
Call<MultiPartyCallRecordingStartResponse> mpcParticipantStartRecording(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId, @Body MultiPartyCallParticipantRecordingStart startParticipantRecording);
// Stop participant recording multiparty call
@DELETE("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/Record/")
Call<ResponseBody> mpcParticipantRecordStop(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
// Pause participant recording multiparty call
@Headers("Content-Type: application/json")
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/Record/Pause/")
Call<BaseResponse> mpcParticipantPauseRecording(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
// Resume participant recording multiparty call
@Headers("Content-Type: application/json")
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Participant/{participantId}/Record/Resume/")
Call<BaseResponse> mpcParticipantResumeRecording(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
@POST("Account/{authId}/MultiPartyCall/{mpcId}/Member/{participantId}/Play/")
Call<MultiPartyCallStartPlayAudioResponse> mpcStartPlayAudio(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId, @Body MultiPartyCallStartPlayAudio multiPartyCallStartPlayAudio);
@DELETE("Account/{authId}/MultiPartyCall/{mpcId}/Member/{participantId}/Play/")
Call<ResponseBody> mpcStopPlayAudio(@Path("authId") String authId, @Path("mpcId") String mpcId, @Path("participantId") String participantId);
// Streaming
@POST("Account/{authId}/Call/{callId}/Stream/")
Call<CallStreamCreateResponse> callStreamCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
CallStreamCreator callStreamCreator);
@DELETE("Account/{authId}/Call/{callId}/Stream/")
Call<ResponseBody> callStreamDelete(@Path("authId") String authId, @Path("callId") String callId);
@DELETE("Account/{authId}/Call/{callId}/Stream/{streamId}")
Call<ResponseBody> callStreamDeleteSpecific(@Path("authId") String authId, @Path("callId") String callId,
@Path("streamId") String streamId);
@GET("Account/{authId}/Call/{callId}/Stream/")
Call<ListResponse<CallStreamGetSpecificResponse>> callStreamGetAll(@Path("authId") String authId, @Path("callId") String callId);
@GET("Account/{authId}/Call/{callId}/Stream/{streamId}")
Call<CallStreamGetSpecificResponse> callStreamGetSpecific(@Path("authId") String authId, @Path("callId") String callId,
@Path("streamId") String streamId);
@POST("Account/{authId}/Verify/Session/")
Call<SessionCreateResponse> sessionSend(@Path("authId") String authId,
@Body SessionCreator sessionCreator);
@POST("Account/{authId}/Verify/Session/{id}/")
Call<SessionCreateResponse> validateSession(@Path("authId") String authId, @Path("id") String id,
@Body ValidateSession validateSession);
@GET("Account/{authId}/Verify/Session/{id}/")
Call<VerifySession> sessionGet(@Path("authId") String authId, @Path("id") String id);
@GET("Account/{authId}/Verify/Session/")
Call<ListResponse<VerifySessionList>> sessionList(@Path("authId") String authId,
@QueryMap Map<String, Object> sessionListRequest);
//Verify
@POST("Account/{authId}/VerifiedCallerId/")
Call<InitiateVerifyResponse> initiateVerify(@Path("authId") String authId, @Body InitiateVerify initiateVerify);
@POST("Account/{authId}/VerifiedCallerId/Verification/{verificationUuid}/")
Call<VerifyCallerIdResponse> verifyCallerID(@Path("authId") String authId, @Path("verificationUuid") String verificationUuid, @Body VerifyCallerId verifyCallerId);
@POST("Account/{authId}/VerifiedCallerId/{phoneNumber}")
Call<UpdateVerifiedCallerIdResponse> updateVerifiedCallerID(@Path("authId") String authId, @Path("phoneNumber") String phoneNumber, @Body UpdateVerifiedCallerID updateVerifiedCallerID);
@GET("Account/{authId}/VerifiedCallerId/{phoneNumber}")
Call<GetVerifiedCallerIdResponse> getVerifiedCallerID(@Path("authId") String authId, @Path("phoneNumber") String phoneNumber);
@GET("Account/{authId}/VerifiedCallerId/")
Call<ListVerifiedCallerIdResponse> listVerifiedCallerID(@Path("authId") String authId, @QueryMap Map<String, Object> listVerifiedCallerId);
@DELETE("Account/{authId}/VerifiedCallerId/{phoneNumber}")
Call<ResponseBody> deleteVerifiedCallerID(@Path("authId") String authId, @Path("phoneNumber") String phoneNumber);
// TollfreeVerification Request
// Get
@GET("Account/{authId}/TollfreeVerification/{uuid}/")
Call<TollfreeVerification> tollfreeVerificationGet(@Path("authId") String authId, @Path("uuid") String uuid);
// Create
@POST("Account/{authId}/TollfreeVerification/")
Call<TollfreeVerificationCreateResponse> tollfreeVerificationCreate(@Path("authId") String authId,
@Body TollfreeVerificationCreator tollfreeVerificationCreator);
// Update
@POST("Account/{authId}/TollfreeVerification/{uuid}/")
Call<TollfreeVerificationUpdateResponse> tollfreeVerificationUpdate(@Path("authId") String authId, @Path("uuid") String uuid,
@Body TollfreeVerificationUpdater tollfreeVerificationUpdater);
// List
@GET("Account/{authId}/TollfreeVerification/")
Call<ListResponse<TollfreeVerification>> tollfreeVerificationList(@Path("authId") String authId,
@QueryMap Map<String, Object> tollfreeVerificationLister);
// Delete
@DELETE("Account/{authId}/TollfreeVerification/{uuid}/")
Call<ResponseBody> tollfreeVerificationDelete(@Path("authId") String authId, @Path("uuid") String uuid);
// PhoneNumber Compliance Requirements
@GET("Account/{authId}/PhoneNumber/Compliance/Requirements/")
Call<PhoneNumberComplianceRequirement> phoneNumberComplianceRequirementList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
// PhoneNumber Compliance Create (multipart)
@POST("Account/{authId}/PhoneNumber/Compliance/")
Call<PhoneNumberComplianceCreateResponse> phoneNumberComplianceCreate(@Path("authId") String authId,
@Body RequestBody body);
// PhoneNumber Compliance List
@GET("Account/{authId}/PhoneNumber/Compliance/")
Call<ListResponse<PhoneNumberCompliance>> phoneNumberComplianceList(@Path("authId") String authId,
@QueryMap Map<String, Object> params);
// PhoneNumber Compliance Get
@GET("Account/{authId}/PhoneNumber/Compliance/{complianceId}/")
Call<PhoneNumberComplianceGetResponse> phoneNumberComplianceGet(@Path("authId") String authId,
@Path("complianceId") String complianceId,
@QueryMap Map<String, Object> params);
// PhoneNumber Compliance Update (PATCH, multipart)
@HTTP(method = "PATCH", path = "Account/{authId}/PhoneNumber/Compliance/{complianceId}/", hasBody = true)
Call<PhoneNumberComplianceUpdateResponse> phoneNumberComplianceUpdate(@Path("authId") String authId,
@Path("complianceId") String complianceId,
@Body RequestBody body);
// PhoneNumber Compliance Delete
@DELETE("Account/{authId}/PhoneNumber/Compliance/{complianceId}/")
Call<ResponseBody> phoneNumberComplianceDelete(@Path("authId") String authId,
@Path("complianceId") String complianceId);
// PhoneNumber Compliance Link
@POST("Account/{authId}/PhoneNumber/Compliance/Link/")
Call<PhoneNumberComplianceLinkResponse> phoneNumberComplianceLinkCreate(@Path("authId") String authId,
@Body PhoneNumberComplianceLinkCreator body);
}