diff --git a/CHANGELOG.md b/CHANGELOG.md
index d22b84c9..12a6e183 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Change Log
+## [5.5.0](https://github.com/plivo/plivo-java/tree/v5.5.0) (2021-11-25)
+**Features - Voice: Multiparty calls**
+- The [Add Multiparty Call API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant) allows for greater functionality by accepting options like `start recording audio`, `stop recording audio`, and their HTTP methods.
+- [Multiparty Calls](https://www.plivo.com/docs/voice/api/multiparty-call/) now has new APIs to `stop` and `play` audio.
+
## [5.4.1](https://github.com/plivo/plivo-java/tree/v5.4.1) (2021-11-05)
**Bug Fix**
- [Update Powerpack API](https://www.plivo.com/docs/sms/api/powerpack#update-a-powerpack) response to retrun `number_pool` parameter.
diff --git a/README.md b/README.md
index 179967ea..9e414a37 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe
com.plivo
plivo-java
- 5.4.1
+ 5.5.0
```
@@ -89,7 +89,7 @@ class Example {
## The Basics
The SDK uses consistent interfaces to create, retrieve, update, delete and list resources. The pattern followed is as follows:
-```java
+``` java
Resource.creator(parameters).create();
Resource.getter(parameters).get();
Resource.updater(identifier, parameters).update();
diff --git a/pom.properties b/pom.properties
index c76d4c33..e21714f2 100644
--- a/pom.properties
+++ b/pom.properties
@@ -1,5 +1,5 @@
# Written manually.
-version=5.4.1
+version=5.5.0
groupId=com.plivo
artifactId=plivo-java
diff --git a/src/main/java/com/plivo/api/PlivoAPIService.java b/src/main/java/com/plivo/api/PlivoAPIService.java
index 1dab8df0..6922bc9a 100644
--- a/src/main/java/com/plivo/api/PlivoAPIService.java
+++ b/src/main/java/com/plivo/api/PlivoAPIService.java
@@ -41,591 +41,597 @@
public interface PlivoAPIService {
- // Address
- @POST("Account/{authId}/Verification/Address/")
- Call addressCreate(@Path("authId") String authId,
- @Body AddressCreator addressCreator);
+ // Address
+ @POST("Account/{authId}/Verification/Address/")
+ Call addressCreate(@Path("authId") String authId,
+ @Body AddressCreator addressCreator);
- @GET("Account/{authId}/Verification/Address/")
- Call> addressList(@Path("authId") String authId,
- @QueryMap Map addressListRequest);
+ @GET("Account/{authId}/Verification/Address/")
+ Call> addressList(@Path("authId") String authId,
+ @QueryMap Map addressListRequest);
- @GET("Account/{authId}/Verification/Address/{addressId}/")
- Call addressGet(@Path("authId") String authId, @Path("addressId") String addressId);
+ @GET("Account/{authId}/Verification/Address/{addressId}/")
+ Call addressGet(@Path("authId") String authId, @Path("addressId") String addressId);
- @POST("Account/{authId}/Verification/Address/{addressId}/")
- Call addressUpdate(@Path("authId") String authId,
- @Path("addressId") String addressId, @Body AddressUpdater addressUpdater);
+ @POST("Account/{authId}/Verification/Address/{addressId}/")
+ Call addressUpdate(@Path("authId") String authId,
+ @Path("addressId") String addressId, @Body AddressUpdater addressUpdater);
- @DELETE("Account/{authId}/Verification/Address/{addressId}/")
- Call addressDelete(@Path("authId") String authId, @Path("addressId") String addressId);
+ @DELETE("Account/{authId}/Verification/Address/{addressId}/")
+ Call addressDelete(@Path("authId") String authId, @Path("addressId") String addressId);
- // Application
- @POST("Account/{authId}/Application/")
- Call applicationCreate(@Path("authId") String authId,
- @Body ApplicationCreator application);
+ // Application
+ @POST("Account/{authId}/Application/")
+ Call applicationCreate(@Path("authId") String authId,
+ @Body ApplicationCreator application);
- @GET("Account/{authId}/Application/")
- Call> applicationList(@Path("authId") String authId,
- @QueryMap Map applicationListRequest);
+ @GET("Account/{authId}/Application/")
+ Call> applicationList(@Path("authId") String authId,
+ @QueryMap Map applicationListRequest);
- @GET("Account/{authId}/Application/{appId}/")
- Call applicationGet(@Path("authId") String authId, @Path("appId") String appId);
+ @GET("Account/{authId}/Application/{appId}/")
+ Call applicationGet(@Path("authId") String authId, @Path("appId") String appId);
- @POST("Account/{authId}/Application/{appId}/")
- Call applicationUpdate(@Path("authId") String authId,
- @Path("appId") String appId, @Body ApplicationUpdater application);
+ @POST("Account/{authId}/Application/{appId}/")
+ Call applicationUpdate(@Path("authId") String authId,
+ @Path("appId") String appId, @Body ApplicationUpdater application);
- @HTTP(method = "DELETE", path = "Account/{authId}/Application/{appId}/", hasBody = true)
- Call applicationDelete(@Path("authId") String authId, @Path("appId") String appId, @Body ApplicationDeleter application);
+ @HTTP(method = "DELETE", path = "Account/{authId}/Application/{appId}/", hasBody = true)
+ Call applicationDelete(@Path("authId") String authId, @Path("appId") String appId, @Body ApplicationDeleter application);
- // Account
- @GET("Account/{authId}/")
- Call accountGet(@Path("authId") String authId);
+ // Account
+ @GET("Account/{authId}/")
+ Call accountGet(@Path("authId") String authId);
- @POST("Account/{authId}/")
- Call accountModify(@Path("authId") String authId,
- @Body AccountUpdater accountUpdater);
+ @POST("Account/{authId}/")
+ Call accountModify(@Path("authId") String authId,
+ @Body AccountUpdater accountUpdater);
- @POST("Account/{authId}/Subaccount/")
- Call subaccountCreate(@Path("authId") String authId,
- @Body SubaccountCreator subaccountCreator);
+ @POST("Account/{authId}/Subaccount/")
+ Call subaccountCreate(@Path("authId") String authId,
+ @Body SubaccountCreator subaccountCreator);
- @POST("Account/{authId}/Subaccount/{subauthId}/")
- Call subaccountModify(@Path("authId") String authId,
- @Path("subauthId") String subauthId, @Body SubaccountUpdater subaccount);
+ @POST("Account/{authId}/Subaccount/{subauthId}/")
+ Call subaccountModify(@Path("authId") String authId,
+ @Path("subauthId") String subauthId, @Body SubaccountUpdater subaccount);
- @GET("Account/{authId}/Subaccount/{subauthId}/")
- Call subaccountGet(@Path("authId") String authId,
- @Path("subauthId") String subauthId);
+ @GET("Account/{authId}/Subaccount/{subauthId}/")
+ Call subaccountGet(@Path("authId") String authId,
+ @Path("subauthId") String subauthId);
- @GET("Account/{authId}/Subaccount/")
- Call> subaccountList(@Path("authId") String authId,
- @Query("limit") Integer limit, @Query("offset") Integer offset);
+ @GET("Account/{authId}/Subaccount/")
+ Call> subaccountList(@Path("authId") String authId,
+ @Query("limit") Integer limit, @Query("offset") Integer offset);
- @HTTP(method = "DELETE", path = "Account/{authId}/Subaccount/{subauthId}/", hasBody = true)
- Call subaccountDelete(@Path("authId") String authId,
- @Path("subauthId") String subauthId, @Body SubaccountDeleter subaccount);
+ @HTTP(method = "DELETE", path = "Account/{authId}/Subaccount/{subauthId}/", hasBody = true)
+ Call subaccountDelete(@Path("authId") String authId,
+ @Path("subauthId") String subauthId, @Body SubaccountDeleter subaccount);
- // Call
- @POST("Account/{authId}/Call/")
- Call callCreate(@Path("authId") String authId,
- @Body CallCreator callCreator);
+ // Call
+ @POST("Account/{authId}/Call/")
+ Call callCreate(@Path("authId") String authId,
+ @Body CallCreator callCreator);
- @GET("Account/{authId}/Call/")
- Call> callList(@Path("authId") String authId,
- @QueryMap Map callListRequest);
+ @GET("Account/{authId}/Call/")
+ Call> callList(@Path("authId") String authId,
+ @QueryMap Map callListRequest);
- @GET("Account/{authId}/Call/{callId}/")
- Call callGet(@Path("authId") String authId,
- @Path("callId") String callId);
+ @GET("Account/{authId}/Call/{callId}/")
+ Call callGet(@Path("authId") String authId,
+ @Path("callId") String callId);
- @POST("Account/{authId}/Call/{callId}/")
- Call callUpdate(@Path("authId") String authId,
- @Path("callId") String callId, @Body CallUpdater callUpdater);
+ @POST("Account/{authId}/Call/{callId}/")
+ Call callUpdate(@Path("authId") String authId,
+ @Path("callId") String callId, @Body CallUpdater callUpdater);
- @DELETE("Account/{authId}/Call/{callId}/")
- Call callDelete(@Path("authId") String authId, @Path("callId") String callId);
+ @DELETE("Account/{authId}/Call/{callId}/")
+ Call callDelete(@Path("authId") String authId, @Path("callId") String callId);
- @GET("Account/{authId}/Call/?status=live")
- Call liveCallListGet(@Path("authId") String authId, @QueryMap Map callListRequest);
+ @GET("Account/{authId}/Call/?status=live")
+ Call liveCallListGet(@Path("authId") String authId, @QueryMap Map callListRequest);
- @GET("Account/{authId}/Call/{callId}/?status=live")
- Call liveCallGet(@Path("authId") String authId, @Path("callId") String callId);
+ @GET("Account/{authId}/Call/{callId}/?status=live")
+ Call liveCallGet(@Path("authId") String authId, @Path("callId") String callId);
- @GET("Account/{authId}/Call/?status=queued")
- Call queuedCallListGet(@Path("authId") String authId);
+ @GET("Account/{authId}/Call/?status=queued")
+ Call queuedCallListGet(@Path("authId") String authId);
- @GET("Account/{authId}/Call/{callId}/?status=queued")
- Call queuedCallGet(@Path("authId") String authId, @Path("callId") String callId);
+ @GET("Account/{authId}/Call/{callId}/?status=queued")
+ Call queuedCallGet(@Path("authId") String authId, @Path("callId") String callId);
- @POST("Account/{authId}/Call/{callId}/Record/")
- Call callRecordCreate(@Path("authId") String authId,
- @Path("callId") String callId, @Body
- CallRecordCreator callRecordCreator);
+ @POST("Account/{authId}/Call/{callId}/Record/")
+ Call callRecordCreate(@Path("authId") String authId,
+ @Path("callId") String callId, @Body
+ CallRecordCreator callRecordCreator);
+
+ @DELETE("Account/{authId}/Call/{callId}/Record/")
+ Call callRecordDelete(@Path("authId") String authId, @Path("callId") String callId);
+
+ @POST("Account/{authId}/Call/{callId}/Play/")
+ Call callPlayCreate(@Path("authId") String authId,
+ @Path("callId") String callId, @Body
+ CallPlayCreator callPlayCreator);
- @DELETE("Account/{authId}/Call/{callId}/Record/")
- Call callRecordDelete(@Path("authId") String authId, @Path("callId") String callId);
+ @DELETE("Account/{authId}/Call/{callId}/Play/")
+ Call callPlayDelete(@Path("authId") String authId, @Path("callId") String callId);
- @POST("Account/{authId}/Call/{callId}/Play/")
- Call callPlayCreate(@Path("authId") String authId,
+ @POST("Account/{authId}/Call/{callId}/Speak/")
+ Call callSpeakCreate(@Path("authId") String authId,
@Path("callId") String callId, @Body
- CallPlayCreator callPlayCreator);
+ CallSpeakCreator callSpeakCreator);
- @DELETE("Account/{authId}/Call/{callId}/Play/")
- Call callPlayDelete(@Path("authId") String authId, @Path("callId") String callId);
+ @DELETE("Account/{authId}/Call/{callId}/Speak/")
+ Call callSpeakDelete(@Path("authId") String authId, @Path("callId") String callId);
- @POST("Account/{authId}/Call/{callId}/Speak/")
- Call callSpeakCreate(@Path("authId") String authId,
- @Path("callId") String callId, @Body
- CallSpeakCreator callSpeakCreator);
+ @POST("Account/{authId}/Call/{callId}/DTMF/")
+ Call callDtmfCreate(@Path("authId") String authId,
+ @Path("callId") String callId, @Body
+ CallDtmfCreator callDtmfCreator);
- @DELETE("Account/{authId}/Call/{callId}/Speak/")
- Call callSpeakDelete(@Path("authId") String authId, @Path("callId") String callId);
+ // Identity
+ @POST("Account/{authId}/Verification/Identity/")
+ Call identityCreate(@Path("authId") String authId,
+ @Body IdentityCreator identitycreator);
- @POST("Account/{authId}/Call/{callId}/DTMF/")
- Call callDtmfCreate(@Path("authId") String authId,
- @Path("callId") String callId, @Body
- CallDtmfCreator callDtmfCreator);
+ @GET("Account/{authId}/Verification/Identity/")
+ Call> identityList(@Path("authId") String authId,
+ @QueryMap Map identityListRequest);
- // Identity
- @POST("Account/{authId}/Verification/Identity/")
- Call identityCreate(@Path("authId") String authId,
- @Body IdentityCreator identitycreator);
+ @GET("Account/{authId}/Verification/Identity/{id}/")
+ Call identityGet(@Path("authId") String authId, @Path("id") String id);
- @GET("Account/{authId}/Verification/Identity/")
- Call> identityList(@Path("authId") String authId,
- @QueryMap Map identityListRequest);
+ @DELETE("Account/{authId}/Verification/Identity/{id}/")
+ Call identityDelete(@Path("authId") String authId, @Path("id") String number);
- @GET("Account/{authId}/Verification/Identity/{id}/")
- Call identityGet(@Path("authId") String authId, @Path("id") String id);
+ @POST("Account/{authId}/Verification/Identity/{id}/")
+ Call identityUpdate(@Path("authId") String authId, @Path("id") String identityId, @Body IdentityUpdater identityUpdater);
- @DELETE("Account/{authId}/Verification/Identity/{id}/")
- Call identityDelete(@Path("authId") String authId, @Path("id") String number);
+ // Message
+ @POST("Account/{authId}/Message/")
+ Call messageSend(@Path("authId") String authId,
+ @Body MessageCreator messageCreator);
- @POST("Account/{authId}/Verification/Identity/{id}/")
- Call identityUpdate(@Path("authId") String authId, @Path("id") String identityId, @Body IdentityUpdater identityUpdater);
+ @GET("Account/{authId}/Message/")
+ Call> messageList(@Path("authId") String authId,
+ @QueryMap Map messageListRequest);
- // Message
- @POST("Account/{authId}/Message/")
- Call messageSend(@Path("authId") String authId,
- @Body MessageCreator messageCreator);
+ @GET("Account/{authId}/Message/{id}/")
+ Call messageGet(@Path("authId") String authId, @Path("id") String id);
- @GET("Account/{authId}/Message/")
- Call> messageList(@Path("authId") String authId,
- @QueryMap Map messageListRequest);
+ @GET("Account/{authId}/Message/{id}/Media/")
+ Call> mmsMediaList(@Path("authId") String authId, @Path("id") String id);
- @GET("Account/{authId}/Message/{id}/")
- Call messageGet(@Path("authId") String authId, @Path("id") String id);
+ @GET("Account/{authId}/Message/{id}/Media/{media_id}/")
+ Call mmsMediaGet(@Path("authId") String authId, @Path("id") String id, @Path("media_id") String media_id);
- @GET("Account/{authId}/Message/{id}/Media/")
- Call> mmsMediaList(@Path("authId") String authId, @Path("id") String id);
+ @DELETE("Account/{authId}/Message/{id}/Media/")
+ Call mmsMediaDelete(@Path("authId") String authId, @Path("id") String id);
- @GET("Account/{authId}/Message/{id}/Media/{media_id}/")
- Call mmsMediaGet(@Path("authId") String authId, @Path("id") String id, @Path("media_id") String media_id);
+ // Number
- @DELETE("Account/{authId}/Message/{id}/Media/")
- Call mmsMediaDelete(@Path("authId") String authId, @Path("id") String id);
+ @GET("Account/{authId}/Number/")
+ Call> numberList(@Path("authId") String authId,
+ @QueryMap Map params);
- // Number
+ @GET("Account/{authId}/Number/{number}/")
+ Call numberGet(@Path("authId") String authId, @Path("number") String number);
- @GET("Account/{authId}/Number/")
- Call> numberList(@Path("authId") String authId,
- @QueryMap Map params);
+ @POST("Account/{authId}/Number/")
+ Call numberCreate(@Path("authId") String authId,
+ @Body NumberCreator numberCreator);
- @GET("Account/{authId}/Number/{number}/")
- Call numberGet(@Path("authId") String authId, @Path("number") String number);
+ @POST("Account/{authId}/Number/{number}/")
+ Call numberUpdate(@Path("authId") String authId,
+ @Path("number") String number, @Body NumberUpdater numberUpdater);
- @POST("Account/{authId}/Number/")
- Call numberCreate(@Path("authId") String authId,
- @Body NumberCreator numberCreator);
+ @DELETE("Account/{authId}/Number/{number}/")
+ Call numberDelete(@Path("authId") String authId, @Path("number") String number);
- @POST("Account/{authId}/Number/{number}/")
- Call numberUpdate(@Path("authId") String authId,
- @Path("number") String number, @Body NumberUpdater numberUpdater);
+ @GET("Account/{authId}/PhoneNumber/")
+ Call> phoneNumberList(@Path("authId") String authId, @QueryMap Map params);
- @DELETE("Account/{authId}/Number/{number}/")
- Call numberDelete(@Path("authId") String authId, @Path("number") String number);
+ @POST("Account/{authId}/PhoneNumber/{number}/")
+ Call phoneNumberCreate(@Path("authId") String authId,
+ @Path("number") String number, @Body
+ PhoneNumberCreator creator);
- @GET("Account/{authId}/PhoneNumber/")
- Call> phoneNumberList(@Path("authId") String authId, @QueryMap Map params);
+ // Recording
- @POST("Account/{authId}/PhoneNumber/{number}/")
- Call phoneNumberCreate(@Path("authId") String authId,
- @Path("number") String number, @Body
- PhoneNumberCreator creator);
+ @GET("Account/{authId}/Recording/")
+ Call> recordingList(@Path("authId") String authId,
+ @QueryMap Map params);
- // Recording
+ @GET("Account/{authId}/Recording/{recordingId}/")
+ Call recordingGet(@Path("authId") String authId,
+ @Path("recordingId") String recordingId);
- @GET("Account/{authId}/Recording/")
- Call> recordingList(@Path("authId") String authId,
- @QueryMap Map params);
+ @DELETE("Account/{authId}/Recording/{recordingId}/")
+ Call recordingDelete(@Path("authId") String authId,
+ @Path("recordingId") String recordingId);
- @GET("Account/{authId}/Recording/{recordingId}/")
- Call recordingGet(@Path("authId") String authId,
- @Path("recordingId") String recordingId);
+ // Endpoint
- @DELETE("Account/{authId}/Recording/{recordingId}/")
- Call recordingDelete(@Path("authId") String authId,
- @Path("recordingId") String recordingId);
+ @POST("Account/{authId}/Endpoint/")
+ Call endpointCreate(@Path("authId") String authId,
+ @Body EndpointCreator endpointCreator);
- // Endpoint
+ @GET("Account/{authId}/Endpoint/")
+ Call> endpointList(@Path("authId") String authId,
+ @QueryMap Map params);
- @POST("Account/{authId}/Endpoint/")
- Call endpointCreate(@Path("authId") String authId,
- @Body EndpointCreator endpointCreator);
+ @GET("Account/{authId}/Endpoint/{endpointId}/")
+ Call endpointGet(@Path("authId") String authId, @Path("endpointId") String endpointId);
- @GET("Account/{authId}/Endpoint/")
- Call> endpointList(@Path("authId") String authId,
- @QueryMap Map params);
+ @POST("Account/{authId}/Endpoint/{endpointId}/")
+ Call endpointUpdate(@Path("authId") String authId,
+ @Path("endpointId") String endpointId, @Body
+ EndpointUpdater endpointUpdater);
- @GET("Account/{authId}/Endpoint/{endpointId}/")
- Call endpointGet(@Path("authId") String authId, @Path("endpointId") String endpointId);
+ @DELETE("Account/{authId}/Endpoint/{endpointId}/")
+ Call endpointDelete(@Path("authId") String authId,
+ @Path("endpointId") String endpointId);
- @POST("Account/{authId}/Endpoint/{endpointId}/")
- Call endpointUpdate(@Path("authId") String authId,
- @Path("endpointId") String endpointId, @Body
- EndpointUpdater endpointUpdater);
+ // Conference
- @DELETE("Account/{authId}/Endpoint/{endpointId}/")
- Call endpointDelete(@Path("authId") String authId,
- @Path("endpointId") String endpointId);
+ @GET("Account/{authId}/Conference/")
+ Call conferenceListGet(@Path("authId") String authId);
- // Conference
+ @GET("Account/{authId}/Conference/{conferenceName}/")
+ Call conferenceGet(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName);
- @GET("Account/{authId}/Conference/")
- Call conferenceListGet(@Path("authId") String authId);
+ @DELETE("Account/{authId}/Conference/")
+ Call conferenceDeleteAll(@Path("authId") String authId);
- @GET("Account/{authId}/Conference/{conferenceName}/")
- Call conferenceGet(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/")
+ Call conferenceDelete(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName);
- @DELETE("Account/{authId}/Conference/")
- Call conferenceDeleteAll(@Path("authId") String authId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/")
+ Call conferenceMemberDelete(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
- @DELETE("Account/{authId}/Conference/{conferenceName}/")
- Call conferenceDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName);
+ // Required as there is no body
+ @Headers("Content-Type: application/json")
+ @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Kick/")
+ Call conferenceMemberKickCreate(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/")
- Call 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}/Mute/")
+ Call conferenceMemberMuteCreate(@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 conferenceMemberKickCreate(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Mute/")
+ Call conferenceMemberMuteDelete(@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 conferenceMemberMuteCreate(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
+ Call conferenceMemberPlayCreate(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
+ @Body ConferenceMemberPlayCreator conferenceMemberPlayCreator);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Mute/")
- Call conferenceMemberMuteDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
+ Call conferenceMemberPlayDelete(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
- @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
- Call conferenceMemberPlayCreate(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
- @Body ConferenceMemberPlayCreator conferenceMemberPlayCreator);
+ @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
+ Call conferenceMemberSpeakCreate(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
+ @Body ConferenceMemberSpeakCreator conferenceMemberSpeakCreator);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Play/")
- Call conferenceMemberPlayDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
+ Call conferenceMemberSpeakDelete(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
- @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
- Call conferenceMemberSpeakCreate(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId,
- @Body ConferenceMemberSpeakCreator conferenceMemberSpeakCreator);
+ // Required as there is no body
+ @Headers("Content-Type: application/json")
+ @POST("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Deaf/")
+ Call conferenceMemberDeafCreate(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Speak/")
- Call conferenceMemberSpeakDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Deaf/")
+ Call 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}/Member/{memberId}/Deaf/")
- Call conferenceMemberDeafCreate(@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 conferenceRecordCreate(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Member/{memberId}/Deaf/")
- Call conferenceMemberDeafDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName, @Path("memberId") String memberId);
+ @DELETE("Account/{authId}/Conference/{conferenceName}/Record/")
+ Call conferenceRecordDelete(@Path("authId") String authId,
+ @Path("conferenceName") String conferenceName);
- // Required as there is no body
- @Headers("Content-Type: application/json")
- @POST("Account/{authId}/Conference/{conferenceName}/Record/")
- Call conferenceRecordCreate(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName);
+ // Pricing
+
+ @GET("Account/{authId}/Pricing/")
+ Call pricingGet(@Path("authId") String authId, @Query("country_iso") String countryIso);
+
+ @DELETE("Account/{authId}/Request/{requestUuid}/")
+ Call 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 phloGet(@Path("phloId") String phloId);
+
+ @GET("phlo/{phloId}/runs/{runId}")
+ Call phloRunGet(@Path("phloId") String phloId, @Path("runId") String runId);
+
+ @Headers("Content-Type: application/json")
+ @POST("phlo/{phloId}/{nodeType}/{nodeId}")
+ Call 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 memberAction(@Path("phloId") String phloId,
+ @Path("nodeType") NodeType nodeType,
+ @Path("nodeId") String nodeId,
+ @Path("memberId") String memberId,
+ @Body MultiPartyCallUpdatePayload payload);
- @DELETE("Account/{authId}/Conference/{conferenceName}/Record/")
- Call conferenceRecordDelete(@Path("authId") String authId,
- @Path("conferenceName") String conferenceName);
+ @GET("phlo/{phloId}/{nodeType}/{nodeId}")
+ Call multiPartyCallGet(@Path("phloId") String phloId,
+ @Path("nodeType") NodeType nodeType,
+ @Path("nodeId") final String nodeId);
- // Pricing
+ @Headers("Content-Type: application/json")
+ @POST("account/{authId}/phlo/{phloId}")
+ Call runPhlo(@Path("authId") String authId,
+ @Path("phloId") String phloId,
+ @Body Map payload);
- @GET("Account/{authId}/Pricing/")
- Call pricingGet(@Path("authId") String authId, @Query("country_iso") String countryIso);
+ //Powerpack
+ @POST("Account/{authId}/Powerpack/")
+ Call createPowerpack(@Path("authId") String authId, @Body PowerpackCreator powerpackCreator);
- @DELETE("Account/{authId}/Request/{requestUuid}/")
- Call requestDelete(@Path("authId") String authId, @Path("requestUuid") String requestUuid);
+ @GET("Account/{authId}/Powerpack/{uuid}/")
+ Call powerpackGet(@Path("authId") String authId, @Path("uuid") String uuid);
- // PHLO - server is different from plivo server. Need content-type setting for POST
- @GET("phlo/{phloId}")
- Call phloGet(@Path("phloId") String phloId);
+ @GET("Account/{authId}/Powerpack/")
+ Call> powerpackList(@Path("authId") String authId,
+ @QueryMap Map powerpackListRequest);
- @GET("phlo/{phloId}/runs/{runId}")
- Call phloRunGet(@Path("phloId") String phloId, @Path("runId") String runId);
-
- @Headers("Content-Type: application/json")
- @POST("phlo/{phloId}/{nodeType}/{nodeId}")
- Call nodeAction(@Path("phloId") String phloId,
- @Path("nodeType") NodeType nodeType,
- @Path("nodeId") String nodeId,
- @Body MultiPartyCallUpdatePayload payload);
+ //
+ @POST("Account/{authId}/Powerpack/{uuid}/")
+ Call powerpackUpdate(@Path("authId") String authId,
+ @Path("uuid") String uuid, @Body PowerpackUpdater powerpackUpdater);
+
+ //
+ @HTTP(method = "DELETE", path = "Account/{authId}/Powerpack/{id}/", hasBody = true)
+ Call powerpackDeleter(@Path("authId") String authId, @Path("id") String id, @Body PowerpackDeleter powerpackDelete);
+
+ @GET("Account/{authId}/NumberPool/{uuid}/Number/")
+ Call> powerpackNumberList(@Path("authId") String authId, @Path("uuid") String uuid,
+ @QueryMap Map powerpackNumberListRequest);
+
+ @GET("Account/{authId}/NumberPool/{uuid}/Shortcode/")
+ Call> powerpackShortcodeList(@Path("authId") String authId, @Path("uuid") String uuid,
+ @QueryMap Map powerpackShortcodeListRequest);
+
+ //
+ @GET("Account/{authId}/NumberPool/{uuid}/Tollfree/")
+ Call> powerpackTollfreeList(@Path("authId") String authId, @Path("uuid") String uuid,
+ @QueryMap Map powerpackTollfreeListRequest);
- @Headers("Content-Type: application/json")
- @POST("phlo/{phloId}/{nodeType}/{nodeId}/members/{memberId}")
- Call memberAction(@Path("phloId") String phloId,
- @Path("nodeType") NodeType nodeType,
- @Path("nodeId") String nodeId,
- @Path("memberId") String memberId,
- @Body MultiPartyCallUpdatePayload payload);
+ @GET("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
+ Call powerpackFindNumberGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number);
- @GET("phlo/{phloId}/{nodeType}/{nodeId}")
- Call multiPartyCallGet(@Path("phloId") String phloId,
- @Path("nodeType") NodeType nodeType,
- @Path("nodeId") final String nodeId);
+ @GET("Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/")
+ Call powerpackFindShortcodeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode);
- @Headers("Content-Type: application/json")
- @POST("account/{authId}/phlo/{phloId}")
- Call runPhlo(@Path("authId") String authId,
- @Path("phloId") String phloId,
- @Body Map payload);
+ @GET("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
+ Call powerpackFindTollfreeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree);
- //Powerpack
- @POST("Account/{authId}/Powerpack/")
- Call createPowerpack(@Path("authId") String authId, @Body PowerpackCreator powerpackCreator);
+ @POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
+ Call powerpackAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body PowerpackAddNumber addnumber);
- @GET("Account/{authId}/Powerpack/{uuid}/")
- Call powerpackGet(@Path("authId") String authId, @Path("uuid") String uuid);
+ @POST("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
+ Call powerpackAddTollfreeCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body PowerpackAddTollfree addtollfree);
- @GET("Account/{authId}/Powerpack/")
- Call> powerpackList(@Path("authId") String authId,
- @QueryMap Map powerpackListRequest);
+ @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Number/{number}/", hasBody = true)
+ Call powerpackNumberDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body RemoveNumber numberDeleter);
- //
- @POST("Account/{authId}/Powerpack/{uuid}/")
- Call powerpackUpdate(@Path("authId") String authId,
- @Path("uuid") String uuid, @Body PowerpackUpdater powerpackUpdater);
+ @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/", hasBody = true)
+ Call powerpackTollfreeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body RemoveTollfree tollfreeDeleter);
- //
- @HTTP(method = "DELETE", path = "Account/{authId}/Powerpack/{id}/", hasBody = true)
- Call powerpackDeleter(@Path("authId") String authId, @Path("id") String id, @Body PowerpackDeleter powerpackDelete);
+ @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/", hasBody = true)
+ Call powerpackShortcodeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode, @Body RemoveShortcode shortcodeDeleter);
- @GET("Account/{authId}/NumberPool/{uuid}/Number/")
- Call> powerpackNumberList(@Path("authId") String authId, @Path("uuid") String uuid,
- @QueryMap Map powerpackNumberListRequest);
+ @POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
+ Call powerpackBuyAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body BuyAddNumbers numbers);
- @GET("Account/{authId}/NumberPool/{uuid}/Shortcode/")
- Call> powerpackShortcodeList(@Path("authId") String authId, @Path("uuid") String uuid,
- @QueryMap Map powerpackShortcodeListRequest);
+ @GET("Account/{authId}/Media/")
+ Call> mediaList(@Path("authId") String authId, @QueryMap Map mediaListRequest);
- //
- @GET("Account/{authId}/NumberPool/{uuid}/Tollfree/")
- Call> powerpackTollfreeList(@Path("authId") String authId, @Path("uuid") String uuid,
- @QueryMap Map powerpackTollfreeListRequest);
+ @GET("Account/{authId}/Media/{id}/")
+ Call mediaGet(@Path("authId") String authId, @Path("id") String id);
- @GET("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
- Call powerpackFindNumberGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number);
+ @POST("Account/{authId}/Media/")
+ Call uploadMedia(@Path("authId") String authId, @Body RequestBody mediaUploads);
- @GET("Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/")
- Call powerpackFindShortcodeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode);
- @GET("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
- Call powerpackFindTollfreeGet(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree);
+ // Enduser
+ // Get
+ @GET("Account/{authId}/EndUser/{id}/")
+ Call endUserGet(@Path("authId") String authId, @Path("id") String id);
- @POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
- Call powerpackAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body PowerpackAddNumber addnumber);
+ // Create
+ @POST("Account/{authId}/EndUser/")
+ Call endUserCreate(@Path("authId") String authId,
+ @Body EndUserCreator endUserCreator);
- @POST("Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/")
- Call powerpackAddTollfreeCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body PowerpackAddTollfree addtollfree);
+ // Update
+ @POST("Account/{authId}/EndUser/{id}/")
+ Call endUserUpdate(@Path("authId") String authId, @Path("id") String id,
+ @Body EndUserUpdater endUserUpdater);
- @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Number/{number}/", hasBody = true)
- Call powerpackNumberDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body RemoveNumber numberDeleter);
+ // List all end user
+ @GET("Account/{authId}/EndUser/")
+ Call> endUserList(@Path("authId") String authId,
+ @QueryMap Map endUserListRequest);
- @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Tollfree/{tollfree}/", hasBody = true)
- Call powerpackTollfreeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("tollfree") String tollfree, @Body RemoveTollfree tollfreeDeleter);
+ @DELETE("Account/{authId}/EndUser/{id}/")
+ Call endUserDelete(@Path("authId") String authId, @Path("id") String endUserId);
- @HTTP(method = "DELETE", path = "Account/{authId}/NumberPool/{uuid}/Shortcode/{shortcode}/", hasBody = true)
- Call powerpackShortcodeDelete(@Path("authId") String authId, @Path("uuid") String uuid, @Path("shortcode") String shortcode, @Body RemoveShortcode shortcodeDeleter);
+ // Compliance Document Type
+ // Get
+ @GET("Account/{authId}/ComplianceDocumentType/{id}/")
+ Call complianceDocumentTypeGet(@Path("authId") String authId, @Path("id") String id);
- @POST("Account/{authId}/NumberPool/{uuid}/Number/{number}/")
- Call powerpackBuyAddNumberCreate(@Path("authId") String authId, @Path("uuid") String uuid, @Path("number") String number, @Body BuyAddNumbers numbers);
+ // List
+ @GET("Account/{authId}/ComplianceDocumentType/")
+ Call> complianceDocumentTypeList(@Path("authId") String authId,
+ @QueryMap Map complianceDocumentListRequest);
- @GET("Account/{authId}/Media/")
- Call> mediaList(@Path("authId") String authId, @QueryMap Map mediaListRequest);
- @GET("Account/{authId}/Media/{id}/")
- Call mediaGet(@Path("authId") String authId, @Path("id") String id);
+ // Compliance Requirement
+ // Get
+ @GET("Account/{authId}/ComplianceRequirement/{id}/")
+ Call complianceRequirementGet(@Path("authId") String authId, @Path("id") String id);
- @POST("Account/{authId}/Media/")
- Call uploadMedia(@Path("authId") String authId, @Body RequestBody mediaUploads);
+ // List
+ @GET("Account/{authId}/ComplianceRequirement/")
+ Call complianceRequirementList(@Path("authId") String authId,
+ @QueryMap Map complianceDocumentListRequest);
- // Enduser
- // Get
- @GET("Account/{authId}/EndUser/{id}/")
- Call endUserGet(@Path("authId") String authId, @Path("id") String id);
+ // Compliance Application
+ // Get
+ @GET("Account/{authId}/ComplianceApplication/{id}/")
+ Call complianceApplicationGet(@Path("authId") String authId, @Path("id") String id);
- // Create
- @POST("Account/{authId}/EndUser/")
- Call endUserCreate(@Path("authId") String authId,
- @Body EndUserCreator endUserCreator);
+ // Create
+ @POST("Account/{authId}/ComplianceApplication/")
+ Call complianceApplicationCreate(@Path("authId") String authId,
+ @Body ComplianceApplicationCreator complianceApplicationCreator);
- // Update
- @POST("Account/{authId}/EndUser/{id}/")
- Call