Skip to content

Commit

Permalink
Merge pull request #264 from plivo/SMS-6439
Browse files Browse the repository at this point in the history
 SMS-6439: Adding registration_status filter option for Java SDK
  • Loading branch information
narayana-plivo authored Nov 22, 2023
2 parents 0ec00c0 + 029c5ea commit 213e758
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log
## [5.36.0](https://github.com/plivo/plivo-java/tree/v5.36.0) (2023-11-09)
**Feature - registration_status field**
- Added new param `registration_status` in LIST Campaign APIs


## [5.35.0](https://github.com/plivo/plivo-java/tree/v5.35.0) (2023-11-08)
**Verify Service**
-Added Support for Verify Service Public API'S
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a

### To Install Stable release

You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.34.0/plivo-java-5.34.0.jar).
You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.36.0/plivo-java-5.36.0.jar).

If you are using Maven, use the following XML to include the Plivo SDK as a dependency.

```xml
<dependency>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.34.0</version>
<version>5.36.0</version>
</dependency>
```

If you are using Gradle, use the following line in your dependencies.
```
compile 'com.plivo:plivo-java:5.35.0'
compile 'com.plivo:plivo-java:5.36.0'
```

### To Install Beta release
Expand Down
2 changes: 1 addition & 1 deletion pom.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Written manually.

version=5.35.0
version=5.36.0
groupId=com.plivo
artifactId=plivo-java

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.35.0</version>
<version>5.36.0</version>
<name>plivo-java</name>
<description>A Java SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML</description>
<licenses>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/plivo/api/PlivoAPIService.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Call<ListResponse<Profile>> profileList(@Path("authId") String authId,
@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("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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class CampaignLister extends MessagingCampaignLister<Campaign> {
private String campaignSource;
private String brandId;
private String usecase;
private String registrationStatus;

public CampaignLister limit(Integer limit) {
this.limit = limit;
Expand All @@ -33,6 +34,12 @@ public CampaignLister usecase(String usecase) {
this.usecase = usecase;
return this;

}

public CampaignLister registrationStatus(String registrationStatus) {
this.registrationStatus = registrationStatus;
return this;

}
public CampaignLister brandId(String brandId) {
this.brandId = brandId;
Expand All @@ -42,6 +49,6 @@ public CampaignLister brandId(String brandId) {

@Override
protected Call<ListResponse<Campaign>> obtainCall() {
return client().getApiService().campaignList(client().getAuthId(), toMap(), limit, offset, campaignSource, brandId, usecase);
return client().getApiService().campaignList(client().getAuthId(), toMap(), limit, offset, campaignSource, brandId, usecase, registrationStatus);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/com/plivo/api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.35.0
5.36.0

0 comments on commit 213e758

Please sign in to comment.